pub struct ThreadNeighborInfoEntry {
pub age: Option<i64>,
pub is_child: Option<bool>,
pub event: Option<HistoryTrackerNeighborEvent>,
pub extended_address: Option<Vec<u8>>,
pub rloc16: Option<u16>,
pub mode: Option<ThreadLinkMode>,
pub avg_rssi: Option<i32>,
/* private fields */
}Expand description
Represents a single entry in the Thread Neighbor Table history.
Fields§
§age: Option<i64>Time elapsed since the command was issued.
Required.
is_child: Option<bool>Device type: either “Child” or “Router”.
Required.
event: Option<HistoryTrackerNeighborEvent>Neighbor Event. Possible values:
otHistoryTrackerNeighborEvent::OT_HISTORY_TRACKER_NEIGHBOR_EVENT_ADDED,
otHistoryTrackerNeighborEvent::OT_HISTORY_TRACKER_NEIGHBOR_EVENT_REMOVED,
otHistoryTrackerNeighborEvent::OT_HISTORY_TRACKER_NEIGHBOR_EVENT_CHANGED,
otHistoryTrackerNeighborEvent::OT_HISTORY_TRACKER_NEIGHBOR_EVENT_RESTORING.
Required.
extended_address: Option<Vec<u8>>The extended address of this neighbor.
Required.
rloc16: Option<u16>Neighbor’s RLOC16.
Required.
mode: Option<ThreadLinkMode>MLE link mode.
Required.
avg_rssi: Option<i32>Average received signal strength (in dBm) associated with the frames received from the neighbors.
Required.
Trait Implementations§
Source§impl Clone for ThreadNeighborInfoEntry
impl Clone for ThreadNeighborInfoEntry
Source§fn clone(&self) -> ThreadNeighborInfoEntry
fn clone(&self) -> ThreadNeighborInfoEntry
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 ThreadNeighborInfoEntry
impl Debug for ThreadNeighborInfoEntry
Source§impl<D> Decode<ThreadNeighborInfoEntry, D> for ThreadNeighborInfoEntrywhere
D: ResourceDialect,
impl<D> Decode<ThreadNeighborInfoEntry, D> for ThreadNeighborInfoEntrywhere
D: ResourceDialect,
Source§fn new_empty() -> ThreadNeighborInfoEntry
fn new_empty() -> ThreadNeighborInfoEntry
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for ThreadNeighborInfoEntry
impl Default for ThreadNeighborInfoEntry
Source§fn default() -> ThreadNeighborInfoEntry
fn default() -> ThreadNeighborInfoEntry
Returns the “default value” for a type. Read more
Source§impl<D> Encode<ThreadNeighborInfoEntry, D> for &ThreadNeighborInfoEntrywhere
D: ResourceDialect,
impl<D> Encode<ThreadNeighborInfoEntry, D> for &ThreadNeighborInfoEntrywhere
D: ResourceDialect,
Source§impl PartialEq for ThreadNeighborInfoEntry
impl PartialEq for ThreadNeighborInfoEntry
Source§impl TypeMarker for ThreadNeighborInfoEntry
impl TypeMarker for ThreadNeighborInfoEntry
Source§type Owned = ThreadNeighborInfoEntry
type Owned = ThreadNeighborInfoEntry
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for ThreadNeighborInfoEntry
impl ValueTypeMarker for ThreadNeighborInfoEntry
Source§type Borrowed<'a> = &'a ThreadNeighborInfoEntry
type Borrowed<'a> = &'a ThreadNeighborInfoEntry
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<ThreadNeighborInfoEntry as TypeMarker>::Owned,
) -> <ThreadNeighborInfoEntry as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ThreadNeighborInfoEntry as TypeMarker>::Owned, ) -> <ThreadNeighborInfoEntry as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Persistable for ThreadNeighborInfoEntry
impl StructuralPartialEq for ThreadNeighborInfoEntry
Auto Trait Implementations§
impl Freeze for ThreadNeighborInfoEntry
impl RefUnwindSafe for ThreadNeighborInfoEntry
impl Send for ThreadNeighborInfoEntry
impl Sync for ThreadNeighborInfoEntry
impl Unpin for ThreadNeighborInfoEntry
impl UnsafeUnpin for ThreadNeighborInfoEntry
impl UnwindSafe for ThreadNeighborInfoEntry
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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