#[repr(transparent)]pub struct RouterInfo(pub otRouterInfo);
Expand description
Functional equivalent of otsys::otRouterInfo
.
Tuple Fields§
§0: otRouterInfo
Implementations§
Source§impl RouterInfo
impl RouterInfo
Sourcepub fn empty() -> RouterInfo
pub fn empty() -> RouterInfo
Returns an empty router info.
Source§impl RouterInfo
impl RouterInfo
Sourcepub fn get_ext_address(&self) -> ExtAddress
pub fn get_ext_address(&self) -> ExtAddress
Returns the IEEE 802.15.4 extended address.
Sourcepub fn get_rloc16(&self) -> u16
pub fn get_rloc16(&self) -> u16
Returns the RLOC16.
Sourcepub fn get_router_id(&self) -> u8
pub fn get_router_id(&self) -> u8
Returns the router id.
Sourcepub fn get_next_hop(&self) -> u8
pub fn get_next_hop(&self) -> u8
Returns the next hop to router.
Sourcepub fn get_path_cost(&self) -> u8
pub fn get_path_cost(&self) -> u8
Returns the path cost to router.
Sourcepub fn get_link_quality_in(&self) -> u8
pub fn get_link_quality_in(&self) -> u8
Returns the link quality in.
Sourcepub fn get_link_quality_out(&self) -> u8
pub fn get_link_quality_out(&self) -> u8
Returns the link quality out.
Sourcepub fn get_allocated(&self) -> bool
pub fn get_allocated(&self) -> bool
Returns whether the router is allocated.
Sourcepub fn get_link_established(&self) -> bool
pub fn get_link_established(&self) -> bool
Returns whether the link is established.
Trait Implementations§
Source§impl Clone for RouterInfo
impl Clone for RouterInfo
Source§fn clone(&self) -> RouterInfo
fn clone(&self) -> RouterInfo
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 RouterInfo
impl Debug for RouterInfo
Source§impl Default for RouterInfo
impl Default for RouterInfo
Source§fn default() -> RouterInfo
fn default() -> RouterInfo
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a RouterInfo> for &'a otRouterInfo
impl<'a> From<&'a RouterInfo> for &'a otRouterInfo
Source§fn from(x: &'a RouterInfo) -> Self
fn from(x: &'a RouterInfo) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otRouterInfo> for &'a RouterInfo
impl<'a> From<&'a otRouterInfo> for &'a RouterInfo
Source§impl From<RouterInfo> for otRouterInfo
impl From<RouterInfo> for otRouterInfo
Source§fn from(x: RouterInfo) -> Self
fn from(x: RouterInfo) -> Self
Converts to this type from the input type.
Source§impl From<otRouterInfo> for RouterInfo
impl From<otRouterInfo> for RouterInfo
Source§impl OtCastable for RouterInfo
impl OtCastable for RouterInfo
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 RouterInfo
impl RefUnwindSafe for RouterInfo
impl Send for RouterInfo
impl Sync for RouterInfo
impl Unpin for RouterInfo
impl UnwindSafe for RouterInfo
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
)