#[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
.Auto Trait Implementations§
impl Freeze for MacCounters
impl RefUnwindSafe for MacCounters
impl Send for MacCounters
impl Sync for MacCounters
impl Unpin for MacCounters
impl UnwindSafe for MacCounters
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)