pub struct MleCounters {Show 16 fields
pub disabled_role: Option<u16>,
pub detached_role: Option<u16>,
pub child_role: Option<u16>,
pub router_role: Option<u16>,
pub leader_role: Option<u16>,
pub attach_attempts: Option<u16>,
pub partition_id_changes: Option<u16>,
pub better_partition_attach_attempts: Option<u16>,
pub better_parent_attach_attempts: Option<u16>,
pub disabled_time: Option<u64>,
pub detached_time: Option<u64>,
pub child_time: Option<u64>,
pub router_time: Option<u64>,
pub leader_time: Option<u64>,
pub tracked_time: Option<u64>,
pub parent_changes: Option<u16>,
/* private fields */
}Expand description
Counters associated with the MLE.
Fields§
§disabled_role: Option<u16>Number of times device entered OT_DEVICE_ROLE_DISABLED role.
detached_role: Option<u16>Number of times device entered OT_DEVICE_ROLE_DETACHED role.
child_role: Option<u16>Number of times device entered OT_DEVICE_ROLE_CHILD role.
router_role: Option<u16>Number of times device entered OT_DEVICE_ROLE_ROUTER role.
leader_role: Option<u16>Number of times device entered OT_DEVICE_ROLE_LEADER role.
attach_attempts: Option<u16>Number of attach attempts while device was detached.
partition_id_changes: Option<u16>Number of changes to partition ID.
better_partition_attach_attempts: Option<u16>Number of attempts to attach to a better partition.
better_parent_attach_attempts: Option<u16>Number of attempts to attach to find a better parent (parent search).
disabled_time: Option<u64>Number of milliseconds device has been in OT_DEVICE_ROLE_DISABLED role.
detached_time: Option<u64>Number of milliseconds device has been in OT_DEVICE_ROLE_DETACHED role.
child_time: Option<u64>Number of milliseconds device has been in OT_DEVICE_ROLE_CHILD role.
router_time: Option<u64>Number of milliseconds device has been in OT_DEVICE_ROLE_ROUTER role.
leader_time: Option<u64>Number of milliseconds device has been in OT_DEVICE_ROLE_LEADER role.
tracked_time: Option<u64>Number of milliseconds tracked by previous counters.
parent_changes: Option<u16>Number of times device changed its parent.
Trait Implementations§
Source§impl Clone for MleCounters
impl Clone for MleCounters
Source§fn clone(&self) -> MleCounters
fn clone(&self) -> MleCounters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MleCounters
impl Debug for MleCounters
Source§impl<D> Decode<MleCounters, D> for MleCounterswhere
D: ResourceDialect,
impl<D> Decode<MleCounters, D> for MleCounterswhere
D: ResourceDialect,
Source§fn new_empty() -> MleCounters
fn new_empty() -> MleCounters
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for MleCounters
impl Default for MleCounters
Source§fn default() -> MleCounters
fn default() -> MleCounters
Source§impl<D> Encode<MleCounters, D> for &MleCounterswhere
D: ResourceDialect,
impl<D> Encode<MleCounters, D> for &MleCounterswhere
D: ResourceDialect,
Source§impl PartialEq for MleCounters
impl PartialEq for MleCounters
Source§fn eq(&self, other: &MleCounters) -> bool
fn eq(&self, other: &MleCounters) -> bool
self and other values to be equal, and is used by ==.Source§impl TypeMarker for MleCounters
impl TypeMarker for MleCounters
Source§type Owned = MleCounters
type Owned = MleCounters
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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
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 MleCounters
impl ValueTypeMarker for MleCounters
Source§type Borrowed<'a> = &'a MleCounters
type Borrowed<'a> = &'a MleCounters
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<MleCounters as TypeMarker>::Owned,
) -> <MleCounters as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<MleCounters as TypeMarker>::Owned, ) -> <MleCounters as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.