#[repr(transparent)]pub struct HistoryTrackerNeighborInfo(pub otHistoryTrackerNeighborInfo);Expand description
This structure represents a Thread neighbor info in the history tracker report.
Functional equivalent of otsys::otHistoryTrackerNeighborInfo.
Tuple Fields§
§0: otHistoryTrackerNeighborInfoImplementations§
Source§impl HistoryTrackerNeighborInfo
impl HistoryTrackerNeighborInfo
Sourcepub fn ext_address(&self) -> ExtAddress
pub fn ext_address(&self) -> ExtAddress
Returns Neighbor’s Extended Address.
Sourcepub fn avg_rssi(&self) -> i8
pub fn avg_rssi(&self) -> i8
Returns the Average RSSI of rx frames from neighbor at the time of recording entry.
Sourcepub fn event(&self) -> HistoryTrackerNeighborEvent
pub fn event(&self) -> HistoryTrackerNeighborEvent
Returns the neighbor event (OT_HISTORY_TRACKER_NEIGHBOR_EVENT_* enumeration).
Sourcepub fn rx_on_while_idle(&self) -> bool
pub fn rx_on_while_idle(&self) -> bool
Returns true if the neighbor has its receiver on when not transmitting.
Sourcepub fn full_thread_device(&self) -> bool
pub fn full_thread_device(&self) -> bool
Returns true if the neighbor is a Full Thread Device.
Sourcepub fn full_network_data(&self) -> bool
pub fn full_network_data(&self) -> bool
Returns true if the neighbor requires the full Network Data.
Trait Implementations§
Source§impl Clone for HistoryTrackerNeighborInfo
impl Clone for HistoryTrackerNeighborInfo
Source§fn clone(&self) -> HistoryTrackerNeighborInfo
fn clone(&self) -> HistoryTrackerNeighborInfo
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 HistoryTrackerNeighborInfo
impl Debug for HistoryTrackerNeighborInfo
Source§impl Default for HistoryTrackerNeighborInfo
impl Default for HistoryTrackerNeighborInfo
Source§fn default() -> HistoryTrackerNeighborInfo
fn default() -> HistoryTrackerNeighborInfo
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a HistoryTrackerNeighborInfo> for &'a otHistoryTrackerNeighborInfo
impl<'a> From<&'a HistoryTrackerNeighborInfo> for &'a otHistoryTrackerNeighborInfo
Source§fn from(x: &'a HistoryTrackerNeighborInfo) -> Self
fn from(x: &'a HistoryTrackerNeighborInfo) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otHistoryTrackerNeighborInfo> for &'a HistoryTrackerNeighborInfo
impl<'a> From<&'a otHistoryTrackerNeighborInfo> for &'a HistoryTrackerNeighborInfo
Source§fn from(x: &'a otHistoryTrackerNeighborInfo) -> Self
fn from(x: &'a otHistoryTrackerNeighborInfo) -> Self
Converts to this type from the input type.
Source§impl From<HistoryTrackerNeighborInfo> for otHistoryTrackerNeighborInfo
impl From<HistoryTrackerNeighborInfo> for otHistoryTrackerNeighborInfo
Source§fn from(x: HistoryTrackerNeighborInfo) -> Self
fn from(x: HistoryTrackerNeighborInfo) -> Self
Converts to this type from the input type.
Source§impl From<otHistoryTrackerNeighborInfo> for HistoryTrackerNeighborInfo
impl From<otHistoryTrackerNeighborInfo> for HistoryTrackerNeighborInfo
Source§fn from(x: otHistoryTrackerNeighborInfo) -> Self
fn from(x: otHistoryTrackerNeighborInfo) -> Self
Converts to this type from the input type.
Source§impl OtCastable for HistoryTrackerNeighborInfo
impl OtCastable for HistoryTrackerNeighborInfo
Source§type OtType = otHistoryTrackerNeighborInfo
type OtType = otHistoryTrackerNeighborInfo
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 HistoryTrackerNeighborInfo
impl RefUnwindSafe for HistoryTrackerNeighborInfo
impl Send for HistoryTrackerNeighborInfo
impl Sync for HistoryTrackerNeighborInfo
impl Unpin for HistoryTrackerNeighborInfo
impl UnsafeUnpin for HistoryTrackerNeighborInfo
impl UnwindSafe for HistoryTrackerNeighborInfo
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]