pub struct RouterInfo {
pub extended_address: Option<Vec<u8>>,
pub thread_rloc: Option<u16>,
pub router_id: Option<u8>,
pub next_hop: Option<u8>,
pub path_cost: Option<u8>,
pub link_quality_in: Option<u8>,
pub link_quality_out: Option<u8>,
pub age: Option<i64>,
pub link_established: Option<bool>,
/* private fields */
}Expand description
Represents the diagnostic information for a Thread Router.
Fields§
§extended_address: Option<Vec<u8>>IEEE 802.15.4 Extended Address
Required.
thread_rloc: Option<u16>IEEE 802.15.4 short address of neighbor.
Required.
router_id: Option<u8>Router ID.
Required.
next_hop: Option<u8>Next hop to router.
Required.
path_cost: Option<u8>Path cost to router.
Required.
link_quality_in: Option<u8>Link Quality In.
Required.
link_quality_out: Option<u8>Link Quality Out.
Required.
age: Option<i64>The router’s age (duration since last heard).
Required.
link_established: Option<bool>Whether link established with Router ID or not.
Required.
Trait Implementations§
Source§impl Clone for RouterInfo
impl Clone for RouterInfo
Source§fn clone(&self) -> RouterInfo
fn clone(&self) -> RouterInfo
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 RouterInfo
impl Debug for RouterInfo
Source§impl<D> Decode<RouterInfo, D> for RouterInfowhere
D: ResourceDialect,
impl<D> Decode<RouterInfo, D> for RouterInfowhere
D: ResourceDialect,
Source§fn new_empty() -> RouterInfo
fn new_empty() -> RouterInfo
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.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<D> Encode<RouterInfo, D> for &RouterInfowhere
D: ResourceDialect,
impl<D> Encode<RouterInfo, D> for &RouterInfowhere
D: ResourceDialect,
Source§impl PartialEq for RouterInfo
impl PartialEq for RouterInfo
Source§impl TypeMarker for RouterInfo
impl TypeMarker for RouterInfo
Source§type Owned = RouterInfo
type Owned = RouterInfo
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 RouterInfo
impl ValueTypeMarker for RouterInfo
Source§type Borrowed<'a> = &'a RouterInfo
type Borrowed<'a> = &'a RouterInfo
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: &<RouterInfo as TypeMarker>::Owned,
) -> <RouterInfo as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<RouterInfo as TypeMarker>::Owned, ) -> <RouterInfo as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Persistable for RouterInfo
impl StructuralPartialEq for RouterInfo
Auto Trait Implementations§
impl Freeze for RouterInfo
impl RefUnwindSafe for RouterInfo
impl Send for RouterInfo
impl Sync for RouterInfo
impl Unpin for RouterInfo
impl UnsafeUnpin for RouterInfo
impl UnwindSafe for RouterInfo
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