#[repr(transparent)]pub struct BorderRoutingPrefixTableEntry(pub otBorderRoutingPrefixTableEntry);
Expand description
Represents an entry from the discovered prefix table.
Functional equivalent of otsys::otBorderRoutingPrefixTableEntry
.
Tuple Fields§
§0: otBorderRoutingPrefixTableEntry
Implementations§
Source§impl BorderRoutingPrefixTableEntry
impl BorderRoutingPrefixTableEntry
Sourcepub fn router_address(&self) -> &Ip6Address
pub fn router_address(&self) -> &Ip6Address
Returns a reference to the IPv6 address.
Sourcepub fn is_on_link(&self) -> bool
pub fn is_on_link(&self) -> bool
Returns true if this prefix is on-link.
Sourcepub fn msec_since_last_update(&self) -> u32
pub fn msec_since_last_update(&self) -> u32
Returns the number of milliseconds since the last update
Sourcepub fn valid_lifetime(&self) -> u32
pub fn valid_lifetime(&self) -> u32
Returns the valid lifetime of the prefix (in seconds)
Sourcepub fn preferred_lifetime(&self) -> u32
pub fn preferred_lifetime(&self) -> u32
Returns the preferred lifetime of the prefix (in seconds)
Sourcepub fn route_preference(&self) -> RoutePreference
pub fn route_preference(&self) -> RoutePreference
Returns the route preference
Trait Implementations§
Source§impl Clone for BorderRoutingPrefixTableEntry
impl Clone for BorderRoutingPrefixTableEntry
Source§fn clone(&self) -> BorderRoutingPrefixTableEntry
fn clone(&self) -> BorderRoutingPrefixTableEntry
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 BorderRoutingPrefixTableEntry
impl Default for BorderRoutingPrefixTableEntry
Source§fn default() -> BorderRoutingPrefixTableEntry
fn default() -> BorderRoutingPrefixTableEntry
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a BorderRoutingPrefixTableEntry> for &'a otBorderRoutingPrefixTableEntry
impl<'a> From<&'a BorderRoutingPrefixTableEntry> for &'a otBorderRoutingPrefixTableEntry
Source§fn from(x: &'a BorderRoutingPrefixTableEntry) -> Self
fn from(x: &'a BorderRoutingPrefixTableEntry) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otBorderRoutingPrefixTableEntry> for &'a BorderRoutingPrefixTableEntry
impl<'a> From<&'a otBorderRoutingPrefixTableEntry> for &'a BorderRoutingPrefixTableEntry
Source§impl From<BorderRoutingPrefixTableEntry> for otBorderRoutingPrefixTableEntry
impl From<BorderRoutingPrefixTableEntry> for otBorderRoutingPrefixTableEntry
Source§fn from(x: BorderRoutingPrefixTableEntry) -> Self
fn from(x: BorderRoutingPrefixTableEntry) -> Self
Converts to this type from the input type.
Source§impl From<otBorderRoutingPrefixTableEntry> for BorderRoutingPrefixTableEntry
impl From<otBorderRoutingPrefixTableEntry> for BorderRoutingPrefixTableEntry
Source§impl OtCastable for BorderRoutingPrefixTableEntry
impl OtCastable for BorderRoutingPrefixTableEntry
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
.impl Copy for BorderRoutingPrefixTableEntry
Auto Trait Implementations§
impl Freeze for BorderRoutingPrefixTableEntry
impl RefUnwindSafe for BorderRoutingPrefixTableEntry
impl Send for BorderRoutingPrefixTableEntry
impl Sync for BorderRoutingPrefixTableEntry
impl Unpin for BorderRoutingPrefixTableEntry
impl UnwindSafe for BorderRoutingPrefixTableEntry
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
)