#[repr(transparent)]pub struct MleCounters(pub otMleCounters);Expand description
This structure represents the MLE layer counters.
Functional equivalent of otsys::otMleCounters.
Tuple Fields§
§0: otMleCountersImplementations§
Source§impl MleCounters
impl MleCounters
Sourcepub fn disabled_role(&self) -> u16
pub fn disabled_role(&self) -> u16
Number of times device entered OT_DEVICE_ROLE_DISABLED role.
Sourcepub fn detached_role(&self) -> u16
pub fn detached_role(&self) -> u16
Number of times device entered OT_DEVICE_ROLE_DETACHED role.
Sourcepub fn child_role(&self) -> u16
pub fn child_role(&self) -> u16
Number of times device entered OT_DEVICE_ROLE_CHILD role.
Sourcepub fn router_role(&self) -> u16
pub fn router_role(&self) -> u16
Number of times device entered OT_DEVICE_ROLE_ROUTER role.
Sourcepub fn leader_role(&self) -> u16
pub fn leader_role(&self) -> u16
Number of times device entered OT_DEVICE_ROLE_LEADER role.
Sourcepub fn attach_attempts(&self) -> u16
pub fn attach_attempts(&self) -> u16
Number of attach attempts while device was detached.
Sourcepub fn partition_id_changes(&self) -> u16
pub fn partition_id_changes(&self) -> u16
Number of changes to partition ID.
Sourcepub fn better_partition_attach_attempts(&self) -> u16
pub fn better_partition_attach_attempts(&self) -> u16
Number of attempts to attach to a better partition.
Sourcepub fn better_parent_attach_attempts(&self) -> u16
pub fn better_parent_attach_attempts(&self) -> u16
Number of attempts to attach to find a better parent (parent search).
Sourcepub fn disabled_time(&self) -> u64
pub fn disabled_time(&self) -> u64
Number of milliseconds device has been in OT_DEVICE_ROLE_DISABLED role.
Sourcepub fn detached_time(&self) -> u64
pub fn detached_time(&self) -> u64
Number of milliseconds device has been in OT_DEVICE_ROLE_DETACHED role.
Sourcepub fn child_time(&self) -> u64
pub fn child_time(&self) -> u64
Number of milliseconds device has been in OT_DEVICE_ROLE_CHILD role.
Sourcepub fn router_time(&self) -> u64
pub fn router_time(&self) -> u64
Number of milliseconds device has been in OT_DEVICE_ROLE_ROUTER role.
Sourcepub fn leader_time(&self) -> u64
pub fn leader_time(&self) -> u64
Number of milliseconds device has been in OT_DEVICE_ROLE_LEADER role.
Sourcepub fn tracked_time(&self) -> u64
pub fn tracked_time(&self) -> u64
Number of milliseconds tracked by previous counters.
Sourcepub fn parent_changes(&self) -> u16
pub fn parent_changes(&self) -> 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 Default for MleCounters
impl Default for MleCounters
Source§fn default() -> MleCounters
fn default() -> MleCounters
Source§impl<'a> From<&'a MleCounters> for &'a otMleCounters
impl<'a> From<&'a MleCounters> for &'a otMleCounters
Source§fn from(x: &'a MleCounters) -> Self
fn from(x: &'a MleCounters) -> Self
Source§impl<'a> From<&'a otMleCounters> for &'a MleCounters
impl<'a> From<&'a otMleCounters> for &'a MleCounters
Source§fn from(x: &'a otMleCounters) -> Self
fn from(x: &'a otMleCounters) -> Self
Source§impl From<MleCounters> for otMleCounters
impl From<MleCounters> for otMleCounters
Source§fn from(x: MleCounters) -> Self
fn from(x: MleCounters) -> Self
Source§impl From<otMleCounters> for MleCounters
impl From<otMleCounters> for MleCounters
Source§fn from(x: otMleCounters) -> Self
fn from(x: otMleCounters) -> Self
Source§impl OtCastable for MleCounters
impl OtCastable for MleCounters
Source§type OtType = otMleCounters
type OtType = otMleCounters
Source§fn as_ot_ptr(&self) -> *const Self::OtType
fn as_ot_ptr(&self) -> *const Self::OtType
Self::OtType instance.Source§fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
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>
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>
Self::OtType. Read moreSource§fn as_ot_ref(&self) -> &Self::OtType
fn as_ot_ref(&self) -> &Self::OtType
Self::OtType.Source§fn as_ot_mut(&mut self) -> &mut Self::OtType
fn as_ot_mut(&mut self) -> &mut Self::OtType
Self::OtType.Source§fn ref_from_ot_ref(x: &Self::OtType) -> &Self
fn ref_from_ot_ref(x: &Self::OtType) -> &Self
Self.Auto Trait Implementations§
impl Freeze for MleCounters
impl RefUnwindSafe for MleCounters
impl Send for MleCounters
impl Sync for MleCounters
impl Unpin for MleCounters
impl UnsafeUnpin for MleCounters
impl UnwindSafe for MleCounters
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
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
T to [Self]