#[repr(C)]pub struct otBorderRoutingRouterEntry {
pub mAddress: otIp6Address,
pub mMsecSinceLastUpdate: u32,
pub mAge: u32,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub __bindgen_padding_0: [u8; 3],
}
Expand description
Represents a discovered router on the infrastructure link.
The mIsPeerBr
field requires OPENTHREAD_CONFIG_BORDER_ROUTING_TRACK_PEER_BR_INFO_ENABLE
. Routing Manager
determines whether the router is a peer BR (connected to the same Thread mesh network) by comparing its advertised
PIO/RIO prefixes with the entries in the Thread Network Data. While this method is generally effective, it may not
be 100% accurate in all scenarios, so the mIsPeerBr
flag should be used with caution.
Fields§
§mAddress: otIp6Address
< IPv6 address of the router.
mMsecSinceLastUpdate: u32
< Milliseconds since last update (any message rx) from this router.
mAge: u32
< The router’s age in seconds (duration since its first discovery).
_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§__bindgen_padding_0: [u8; 3]
Implementations§
Source§impl otBorderRoutingRouterEntry
impl otBorderRoutingRouterEntry
pub fn mManagedAddressConfigFlag(&self) -> bool
pub fn set_mManagedAddressConfigFlag(&mut self, val: bool)
pub unsafe fn mManagedAddressConfigFlag_raw(this: *const Self) -> bool
pub unsafe fn set_mManagedAddressConfigFlag_raw(this: *mut Self, val: bool)
pub fn mOtherConfigFlag(&self) -> bool
pub fn set_mOtherConfigFlag(&mut self, val: bool)
pub unsafe fn mOtherConfigFlag_raw(this: *const Self) -> bool
pub unsafe fn set_mOtherConfigFlag_raw(this: *mut Self, val: bool)
pub fn mSnacRouterFlag(&self) -> bool
pub fn set_mSnacRouterFlag(&mut self, val: bool)
pub unsafe fn mSnacRouterFlag_raw(this: *const Self) -> bool
pub unsafe fn set_mSnacRouterFlag_raw(this: *mut Self, val: bool)
pub fn mIsLocalDevice(&self) -> bool
pub fn set_mIsLocalDevice(&mut self, val: bool)
pub unsafe fn mIsLocalDevice_raw(this: *const Self) -> bool
pub unsafe fn set_mIsLocalDevice_raw(this: *mut Self, val: bool)
pub fn mIsReachable(&self) -> bool
pub fn set_mIsReachable(&mut self, val: bool)
pub unsafe fn mIsReachable_raw(this: *const Self) -> bool
pub unsafe fn set_mIsReachable_raw(this: *mut Self, val: bool)
pub fn mIsPeerBr(&self) -> bool
pub fn set_mIsPeerBr(&mut self, val: bool)
pub unsafe fn mIsPeerBr_raw(this: *const Self) -> bool
pub unsafe fn set_mIsPeerBr_raw(this: *mut Self, val: bool)
pub fn new_bitfield_1( mManagedAddressConfigFlag: bool, mOtherConfigFlag: bool, mSnacRouterFlag: bool, mIsLocalDevice: bool, mIsReachable: bool, mIsPeerBr: bool, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for otBorderRoutingRouterEntry
impl Clone for otBorderRoutingRouterEntry
Source§fn clone(&self) -> otBorderRoutingRouterEntry
fn clone(&self) -> otBorderRoutingRouterEntry
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 Default for otBorderRoutingRouterEntry
impl Default for otBorderRoutingRouterEntry
impl Copy for otBorderRoutingRouterEntry
Auto Trait Implementations§
impl Freeze for otBorderRoutingRouterEntry
impl RefUnwindSafe for otBorderRoutingRouterEntry
impl Send for otBorderRoutingRouterEntry
impl Sync for otBorderRoutingRouterEntry
impl Unpin for otBorderRoutingRouterEntry
impl UnwindSafe for otBorderRoutingRouterEntry
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