Struct openthread::ot::MacCounters
source · #[repr(transparent)]pub struct MacCounters(pub otMacCounters);
Expand description
This structure represents the MAC layer counters.
Functional equivalent of otsys::otMacCounters
.
Tuple Fields§
§0: otMacCounters
Implementations§
source§impl MacCounters
impl MacCounters
sourcepub fn tx_unicast(&self) -> u32
pub fn tx_unicast(&self) -> u32
The total number of unique unicast MAC frame transmission requests.
sourcepub fn tx_broadcast(&self) -> u32
pub fn tx_broadcast(&self) -> u32
The total number of unique broadcast MAC frame transmission requests.
sourcepub fn tx_ack_requested(&self) -> u32
pub fn tx_ack_requested(&self) -> u32
The total number of unique MAC frame transmission requests with requested acknowledgment.
sourcepub fn tx_acked(&self) -> u32
pub fn tx_acked(&self) -> u32
The total number of unique MAC frame transmission requests that were acked.
sourcepub fn tx_no_ack_requested(&self) -> u32
pub fn tx_no_ack_requested(&self) -> u32
The total number of unique MAC frame transmission requests without requested acknowledgment.
sourcepub fn tx_data_poll(&self) -> u32
pub fn tx_data_poll(&self) -> u32
The total number of unique MAC Data Poll frame transmission requests.
sourcepub fn tx_beacon(&self) -> u32
pub fn tx_beacon(&self) -> u32
The total number of unique MAC Beacon frame transmission requests.
sourcepub fn tx_beacon_request(&self) -> u32
pub fn tx_beacon_request(&self) -> u32
The total number of unique MAC Beacon Request frame transmission requests.
sourcepub fn tx_other(&self) -> u32
pub fn tx_other(&self) -> u32
The total number of unique other MAC frame transmission requests.
sourcepub fn tx_direct_max_retry_expiry(&self) -> u32
pub fn tx_direct_max_retry_expiry(&self) -> u32
The total number of unique MAC transmission packets that meet maximal retry limit for direct packets.
sourcepub fn tx_indirect_max_retry_expiry(&self) -> u32
pub fn tx_indirect_max_retry_expiry(&self) -> u32
The total number of unique MAC transmission packets that meet maximal retry limit for indirect packets.
sourcepub fn tx_err_cca(&self) -> u32
pub fn tx_err_cca(&self) -> u32
The total number of CCA failures.
sourcepub fn tx_err_abort(&self) -> u32
pub fn tx_err_abort(&self) -> u32
The total number of unique MAC transmission request failures cause by an abort error.
sourcepub fn tx_err_busy_channel(&self) -> u32
pub fn tx_err_busy_channel(&self) -> u32
The total number of unique MAC transmission requests failures caused by a busy channel (a CSMA/CA fail).
sourcepub fn rx_unicast(&self) -> u32
pub fn rx_unicast(&self) -> u32
The total number of unicast frames received.
sourcepub fn rx_broadcast(&self) -> u32
pub fn rx_broadcast(&self) -> u32
The total number of broadcast frames received.
sourcepub fn rx_data_poll(&self) -> u32
pub fn rx_data_poll(&self) -> u32
The total number of MAC Data Poll frames received.
sourcepub fn rx_beacon_request(&self) -> u32
pub fn rx_beacon_request(&self) -> u32
The total number of MAC Beacon Request frames received.
sourcepub fn rx_address_filtered(&self) -> u32
pub fn rx_address_filtered(&self) -> u32
The total number of frames dropped by MAC Filter module.
sourcepub fn rx_dest_addr_filtered(&self) -> u32
pub fn rx_dest_addr_filtered(&self) -> u32
The total number of frames dropped by destination address check.
sourcepub fn rx_duplicated(&self) -> u32
pub fn rx_duplicated(&self) -> u32
The total number of frames dropped due to duplication.
sourcepub fn rx_err_no_frame(&self) -> u32
pub fn rx_err_no_frame(&self) -> u32
The total number of frames dropped because of missing or malformed content.
sourcepub fn rx_err_unknown_neighbor(&self) -> u32
pub fn rx_err_unknown_neighbor(&self) -> u32
The total number of frames dropped due to unknown neighbor.
sourcepub fn rx_err_invalid_src_addr(&self) -> u32
pub fn rx_err_invalid_src_addr(&self) -> u32
The total number of frames dropped due to invalid source address.
sourcepub fn rx_err_sec(&self) -> u32
pub fn rx_err_sec(&self) -> u32
The total number of frames dropped due to security error.
sourcepub fn rx_err_fcs(&self) -> u32
pub fn rx_err_fcs(&self) -> u32
The total number of frames dropped due to invalid FCS.
sourcepub fn rx_err_other(&self) -> u32
pub fn rx_err_other(&self) -> u32
The total number of frames dropped due to other error.
Trait Implementations§
source§impl Clone for MacCounters
impl Clone for MacCounters
source§fn clone(&self) -> MacCounters
fn clone(&self) -> MacCounters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MacCounters
impl Debug for MacCounters
source§impl Default for MacCounters
impl Default for MacCounters
source§fn default() -> MacCounters
fn default() -> MacCounters
source§impl<'a> From<&'a MacCounters> for &'a otMacCounters
impl<'a> From<&'a MacCounters> for &'a otMacCounters
source§fn from(x: &'a MacCounters) -> Self
fn from(x: &'a MacCounters) -> Self
source§impl<'a> From<&'a otMacCounters> for &'a MacCounters
impl<'a> From<&'a otMacCounters> for &'a MacCounters
source§impl From<MacCounters> for otMacCounters
impl From<MacCounters> for otMacCounters
source§fn from(x: MacCounters) -> Self
fn from(x: MacCounters) -> Self
source§impl From<otMacCounters> for MacCounters
impl From<otMacCounters> for MacCounters
source§impl OtCastable for MacCounters
impl OtCastable for MacCounters
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
.