#[repr(C)]pub struct otRouterInfo {
pub mExtAddress: otExtAddress,
pub mRloc16: u16,
pub mRouterId: u8,
pub mNextHop: u8,
pub mPathCost: u8,
pub mLinkQualityIn: u8,
pub mLinkQualityOut: u8,
pub mAge: u8,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
pub __bindgen_padding_0: u8,
}Expand description
This structure holds diagnostic information for a Thread Router
Fields§
§mExtAddress: otExtAddress< IEEE 802.15.4 Extended Address
mRloc16: u16< RLOC16
mRouterId: u8< Router ID
mNextHop: u8< Next hop to router
mPathCost: u8< Path cost to router
mLinkQualityIn: u8< Link Quality In
mLinkQualityOut: u8< Link Quality Out
mAge: u8< Time last heard
_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>§__bindgen_padding_0: u8Implementations§
Source§impl otRouterInfo
impl otRouterInfo
pub fn mAllocated(&self) -> bool
pub fn set_mAllocated(&mut self, val: bool)
pub fn mLinkEstablished(&self) -> bool
pub fn set_mLinkEstablished(&mut self, val: bool)
pub fn new_bitfield_1( mAllocated: bool, mLinkEstablished: bool, ) -> __BindgenBitfieldUnit<[u8; 1], u8>
Trait Implementations§
Source§impl Clone for otRouterInfo
impl Clone for otRouterInfo
Source§fn clone(&self) -> otRouterInfo
fn clone(&self) -> otRouterInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for otRouterInfo
impl Debug for otRouterInfo
impl Copy for otRouterInfo
Auto Trait Implementations§
impl Freeze for otRouterInfo
impl RefUnwindSafe for otRouterInfo
impl Send for otRouterInfo
impl Sync for otRouterInfo
impl Unpin for otRouterInfo
impl UnwindSafe for otRouterInfo
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