pub struct ThreadRouterInfoEntry {
pub age: Option<i64>,
pub event: Option<HistoryTrackerRouterEvent>,
pub router_id: Option<u8>,
pub router_rloc16: Option<u16>,
pub next_hop_id: Option<u8>,
pub next_hop_rloc16: Option<u16>,
pub old_path_cost: Option<u8>,
pub new_path_cost: Option<u8>,
/* private fields */
}Expand description
Represents a single entry in the Thread Router Table history.
Fields§
§age: Option<i64>Time elapsed since the command was issued.
Required.
event: Option<HistoryTrackerRouterEvent>Router Event. Possible values:
otHistoryTrackerRouterEvent::OT_HISTORY_TRACKER_ROUTER_EVENT_ADDED,
otHistoryTrackerRouterEvent::OT_HISTORY_TRACKER_ROUTER_EVENT_REMOVED,
otHistoryTrackerRouterEvent::OT_HISTORY_TRACKER_ROUTER_EVENT_NEXT_HOP_CHANGED,
otHistoryTrackerRouterEvent::OT_HISTORY_TRACKER_ROUTER_EVENT_COST_CHANGED.
Required.
router_id: Option<u8>Router ID.
Required.
router_rloc16: Option<u16>Router’s RLOC16.
Required.
next_hop_id: Option<u8>Router ID of the next hop.
Required.
next_hop_rloc16: Option<u16>RLOC16 of the next hop.
Required.
old_path_cost: Option<u8>Old path cost to the router.
Required.
new_path_cost: Option<u8>New path cost to the router.
Required.
Trait Implementations§
Source§impl Clone for ThreadRouterInfoEntry
impl Clone for ThreadRouterInfoEntry
Source§fn clone(&self) -> ThreadRouterInfoEntry
fn clone(&self) -> ThreadRouterInfoEntry
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 ThreadRouterInfoEntry
impl Debug for ThreadRouterInfoEntry
Source§impl<D> Decode<ThreadRouterInfoEntry, D> for ThreadRouterInfoEntrywhere
D: ResourceDialect,
impl<D> Decode<ThreadRouterInfoEntry, D> for ThreadRouterInfoEntrywhere
D: ResourceDialect,
Source§fn new_empty() -> ThreadRouterInfoEntry
fn new_empty() -> ThreadRouterInfoEntry
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for ThreadRouterInfoEntry
impl Default for ThreadRouterInfoEntry
Source§fn default() -> ThreadRouterInfoEntry
fn default() -> ThreadRouterInfoEntry
Returns the “default value” for a type. Read more
Source§impl<D> Encode<ThreadRouterInfoEntry, D> for &ThreadRouterInfoEntrywhere
D: ResourceDialect,
impl<D> Encode<ThreadRouterInfoEntry, D> for &ThreadRouterInfoEntrywhere
D: ResourceDialect,
Source§impl PartialEq for ThreadRouterInfoEntry
impl PartialEq for ThreadRouterInfoEntry
Source§impl TypeMarker for ThreadRouterInfoEntry
impl TypeMarker for ThreadRouterInfoEntry
Source§type Owned = ThreadRouterInfoEntry
type Owned = ThreadRouterInfoEntry
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 ThreadRouterInfoEntry
impl ValueTypeMarker for ThreadRouterInfoEntry
Source§type Borrowed<'a> = &'a ThreadRouterInfoEntry
type Borrowed<'a> = &'a ThreadRouterInfoEntry
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: &<ThreadRouterInfoEntry as TypeMarker>::Owned,
) -> <ThreadRouterInfoEntry as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ThreadRouterInfoEntry as TypeMarker>::Owned, ) -> <ThreadRouterInfoEntry as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Persistable for ThreadRouterInfoEntry
impl StructuralPartialEq for ThreadRouterInfoEntry
Auto Trait Implementations§
impl Freeze for ThreadRouterInfoEntry
impl RefUnwindSafe for ThreadRouterInfoEntry
impl Send for ThreadRouterInfoEntry
impl Sync for ThreadRouterInfoEntry
impl Unpin for ThreadRouterInfoEntry
impl UnsafeUnpin for ThreadRouterInfoEntry
impl UnwindSafe for ThreadRouterInfoEntry
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