#[repr(C)]pub struct otRouterInfo {Show 13 fields
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_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub mVersion: u8,
pub mCslClockAccuracy: u8,
pub mCslUncertainty: u8,
}
Expand description
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_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§mVersion: u8
< Thread version
mCslClockAccuracy: u8
< CSL clock accuracy, in ± ppm
mCslUncertainty: u8
< CSL uncertainty, in ±10 us
Implementations§
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]>
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
Source§impl Default for otRouterInfo
impl Default for otRouterInfo
Source§fn default() -> otRouterInfo
fn default() -> otRouterInfo
Returns the “default value” for a type. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)