#[repr(transparent)]pub struct BorderRoutingRouter(pub otBorderRoutingRouterEntry);Expand description
This structure represents a peer Border Router found in the Network Data.
Functional equivalent of otsys::otBorderRoutingRouterEntry.
Tuple Fields§
§0: otBorderRoutingRouterEntryImplementations§
Source§impl BorderRoutingRouter
impl BorderRoutingRouter
Sourcepub fn address(&self) -> &Ip6Address
pub fn address(&self) -> &Ip6Address
IPv6 address of the router.
Sourcepub fn msec_since_last_update(&self) -> u32
pub fn msec_since_last_update(&self) -> u32
Milliseconds since last update (any message rx) from this router.
Sourcepub fn managed_address_config_flag(&self) -> bool
pub fn managed_address_config_flag(&self) -> bool
The router’s Managed Address Config flag (M flag).
Sourcepub fn other_config_flag(&self) -> bool
pub fn other_config_flag(&self) -> bool
The router’s Other Config flag (O flag).
Sourcepub fn snac_router_flag(&self) -> bool
pub fn snac_router_flag(&self) -> bool
The router’s SNAC Router flag (S flag).
Sourcepub fn is_local_device(&self) -> bool
pub fn is_local_device(&self) -> bool
This router is the local device (this BR).
Sourcepub fn is_reachable(&self) -> bool
pub fn is_reachable(&self) -> bool
This router is reachable.
Sourcepub fn is_peer_br(&self) -> bool
pub fn is_peer_br(&self) -> bool
This router is (likely) a peer BR.
Trait Implementations§
Source§impl Clone for BorderRoutingRouter
impl Clone for BorderRoutingRouter
Source§fn clone(&self) -> BorderRoutingRouter
fn clone(&self) -> BorderRoutingRouter
Returns a duplicate 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 BorderRoutingRouter
impl Debug for BorderRoutingRouter
Source§impl Default for BorderRoutingRouter
impl Default for BorderRoutingRouter
Source§fn default() -> BorderRoutingRouter
fn default() -> BorderRoutingRouter
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a BorderRoutingRouter> for &'a otBorderRoutingRouterEntry
impl<'a> From<&'a BorderRoutingRouter> for &'a otBorderRoutingRouterEntry
Source§fn from(x: &'a BorderRoutingRouter) -> Self
fn from(x: &'a BorderRoutingRouter) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otBorderRoutingRouterEntry> for &'a BorderRoutingRouter
impl<'a> From<&'a otBorderRoutingRouterEntry> for &'a BorderRoutingRouter
Source§fn from(x: &'a otBorderRoutingRouterEntry) -> Self
fn from(x: &'a otBorderRoutingRouterEntry) -> Self
Converts to this type from the input type.
Source§impl From<BorderRoutingRouter> for otBorderRoutingRouterEntry
impl From<BorderRoutingRouter> for otBorderRoutingRouterEntry
Source§fn from(x: BorderRoutingRouter) -> Self
fn from(x: BorderRoutingRouter) -> Self
Converts to this type from the input type.
Source§impl From<otBorderRoutingRouterEntry> for BorderRoutingRouter
impl From<otBorderRoutingRouterEntry> for BorderRoutingRouter
Source§fn from(x: otBorderRoutingRouterEntry) -> Self
fn from(x: otBorderRoutingRouterEntry) -> Self
Converts to this type from the input type.
Source§impl OtCastable for BorderRoutingRouter
impl OtCastable for BorderRoutingRouter
Source§type OtType = otBorderRoutingRouterEntry
type OtType = otBorderRoutingRouterEntry
Original OpenThread Type.
Source§fn as_ot_ptr(&self) -> *const Self::OtType
fn as_ot_ptr(&self) -> *const Self::OtType
Returns a pointer to the underlying
Self::OtType instance.Source§fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
Returns a mutable pointer to the underlying
Self::OtType instance.Source§unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
Creates a reference from a pointer to an
Self::OtType. Read moreSource§unsafe fn mut_from_ot_mut_ptr<'a>(
ptr: *mut Self::OtType,
) -> Option<&'a mut Self>
unsafe fn mut_from_ot_mut_ptr<'a>( ptr: *mut Self::OtType, ) -> Option<&'a mut Self>
Creates a mut reference from a mut pointer to an
Self::OtType. Read moreSource§fn as_ot_ref(&self) -> &Self::OtType
fn as_ot_ref(&self) -> &Self::OtType
Returns a reference to the original OpenThread type
Self::OtType.Source§fn as_ot_mut(&mut self) -> &mut Self::OtType
fn as_ot_mut(&mut self) -> &mut Self::OtType
Returns a mutable reference to the original OpenThread type
Self::OtType.Source§fn ref_from_ot_ref(x: &Self::OtType) -> &Self
fn ref_from_ot_ref(x: &Self::OtType) -> &Self
Casts a reference to the original OpenThread type to a reference to
Self.Auto Trait Implementations§
impl Freeze for BorderRoutingRouter
impl RefUnwindSafe for BorderRoutingRouter
impl Send for BorderRoutingRouter
impl Sync for BorderRoutingRouter
impl Unpin for BorderRoutingRouter
impl UnwindSafe for BorderRoutingRouter
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]