pub struct Neighbor {
pub extended_pan_id: ExtPanId,
pub ieee: Ieee,
pub nwk: NodeId,
pub flags: u8,
pub permit_joining: u8,
pub depth: u8,
pub lqi: u8,
}Expand description
A neighbor table entry, from Mgmt_Lqi_rsp.
Fields§
§extended_pan_id: ExtPanIdThe neighbor’s extended PAN id.
ieee: IeeeIts IEEE address.
nwk: NodeIdIts network address.
flags: u8Device type (bits 0-1), rx on when idle (2-3), relationship (4-6).
permit_joining: u8Permit joining (bits 0-1).
depth: u8Tree depth.
lqi: u8Link quality.
Implementations§
Source§impl Neighbor
impl Neighbor
Sourcepub fn device_type(&self) -> u8
pub fn device_type(&self) -> u8
0 coordinator, 1 router, 2 end device, 3 unknown.
Sourcepub fn relationship(&self) -> u8
pub fn relationship(&self) -> u8
0 parent, 1 child, 2 sibling, 3 none, 4 previous child.
Trait Implementations§
impl Copy for Neighbor
Source§impl<'de> Deserialize<'de> for Neighbor
impl<'de> Deserialize<'de> for Neighbor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Neighbor
impl StructuralPartialEq for Neighbor
Auto Trait Implementations§
impl Freeze for Neighbor
impl RefUnwindSafe for Neighbor
impl Send for Neighbor
impl Sync for Neighbor
impl Unpin for Neighbor
impl UnsafeUnpin for Neighbor
impl UnwindSafe for Neighbor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more