#[repr(transparent)]pub struct NeighborInfo(pub otNeighborInfo);
Expand description
This structure holds diagnostic information for a neighboring Thread node.
Functional equivalent of otsys::otNeighborInfo
.
Tuple Fields§
§0: otNeighborInfo
Implementations§
Source§impl NeighborInfo
impl NeighborInfo
Sourcepub fn average_rssi(&self) -> Decibels
pub fn average_rssi(&self) -> Decibels
Average RSSI of this neighbor.
Sourcepub fn ext_address(&self) -> ExtAddress
pub fn ext_address(&self) -> ExtAddress
IEEE 802.15.4 Extended Address for this neighbor.
Sourcepub fn needs_full_network_data(&self) -> bool
pub fn needs_full_network_data(&self) -> bool
Returns true if this neighbor needs full network data.
Sourcepub fn is_full_thread_device(&self) -> bool
pub fn is_full_thread_device(&self) -> bool
Returns true if this neighbor is a full thread device.
Sourcepub fn link_frame_counter(&self) -> u32
pub fn link_frame_counter(&self) -> u32
Link Frame Counter for this neighbor.
Sourcepub fn mle_frame_counter(&self) -> u32
pub fn mle_frame_counter(&self) -> u32
MLE Frame Counter for this neighbor.
Sourcepub fn has_rx_on_when_idle(&self) -> bool
pub fn has_rx_on_when_idle(&self) -> bool
Returns true when this neighbor has RX on when idle.
Sourcepub fn rloc16(&self) -> ShortAddress
pub fn rloc16(&self) -> ShortAddress
RLOC16 for this neighbor.
Trait Implementations§
Source§impl Clone for NeighborInfo
impl Clone for NeighborInfo
Source§fn clone(&self) -> NeighborInfo
fn clone(&self) -> NeighborInfo
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 NeighborInfo
impl Debug for NeighborInfo
Source§impl Default for NeighborInfo
impl Default for NeighborInfo
Source§fn default() -> NeighborInfo
fn default() -> NeighborInfo
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a NeighborInfo> for &'a otNeighborInfo
impl<'a> From<&'a NeighborInfo> for &'a otNeighborInfo
Source§fn from(x: &'a NeighborInfo) -> Self
fn from(x: &'a NeighborInfo) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otNeighborInfo> for &'a NeighborInfo
impl<'a> From<&'a otNeighborInfo> for &'a NeighborInfo
Source§impl From<NeighborInfo> for otNeighborInfo
impl From<NeighborInfo> for otNeighborInfo
Source§fn from(x: NeighborInfo) -> Self
fn from(x: NeighborInfo) -> Self
Converts to this type from the input type.
Source§impl From<otNeighborInfo> for NeighborInfo
impl From<otNeighborInfo> for NeighborInfo
Source§impl OtCastable for NeighborInfo
impl OtCastable for NeighborInfo
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 NeighborInfo
impl RefUnwindSafe for NeighborInfo
impl Send for NeighborInfo
impl Sync for NeighborInfo
impl Unpin for NeighborInfo
impl UnwindSafe for NeighborInfo
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
)