Skip to main content

MacCounters

Struct MacCounters 

Source
pub struct MacCounters {
Show 34 fields pub tx_total: Option<u32>, pub tx_unicast: Option<u32>, pub tx_broadcast: Option<u32>, pub tx_ack_requested: Option<u32>, pub tx_acked: Option<u32>, pub tx_no_ack_requested: Option<u32>, pub tx_data: Option<u32>, pub tx_data_poll: Option<u32>, pub tx_beacon: Option<u32>, pub tx_beacon_request: Option<u32>, pub tx_other: Option<u32>, pub tx_retry: Option<u32>, pub tx_direct_max_retry_expiry: Option<u32>, pub tx_indirect_max_retry_expiry: Option<u32>, pub tx_err_cca: Option<u32>, pub tx_err_abort: Option<u32>, pub tx_err_busy_channel: Option<u32>, pub rx_total: Option<u32>, pub rx_unicast: Option<u32>, pub rx_broadcast: Option<u32>, pub rx_data: Option<u32>, pub rx_data_poll: Option<u32>, pub rx_beacon: Option<u32>, pub rx_beacon_request: Option<u32>, pub rx_other: Option<u32>, pub rx_address_filtered: Option<u32>, pub rx_dest_addr_filtered: Option<u32>, pub rx_duplicated: Option<u32>, pub rx_err_no_frame: Option<u32>, pub rx_err_unknown_neighbor: Option<u32>, pub rx_err_invalid_src_addr: Option<u32>, pub rx_err_sec: Option<u32>, pub rx_err_fcs: Option<u32>, pub rx_err_other: Option<u32>,
}
Expand description

The MACCNT counters of §11.14.6, as a Thread stack hands them over.

Every field is optional: §11.14.4’s MACCNT says the device may report these, not that it reports all of them. None is “this device does not keep that counter”, and the same counter must then be left out of the Optional list the descriptor is built from — a value answered for an attribute that is not in AttributeList is a number no client asked for and no client can find.

Fields§

§tx_total: Option<u32>

TxTotalCount (§11.14.6.23).

§tx_unicast: Option<u32>

TxUnicastCount (§11.14.6.24).

§tx_broadcast: Option<u32>

TxBroadcastCount (§11.14.6.25).

§tx_ack_requested: Option<u32>

TxAckRequestedCount (§11.14.6.26).

§tx_acked: Option<u32>

TxAckedCount (§11.14.6.27).

§tx_no_ack_requested: Option<u32>

TxNoAckRequestedCount (§11.14.6.28).

§tx_data: Option<u32>

TxDataCount (§11.14.6.29).

§tx_data_poll: Option<u32>

TxDataPollCount (§11.14.6.30).

§tx_beacon: Option<u32>

TxBeaconCount (§11.14.6.31).

§tx_beacon_request: Option<u32>

TxBeaconRequestCount (§11.14.6.32).

§tx_other: Option<u32>

TxOtherCount (§11.14.6.33).

§tx_retry: Option<u32>

TxRetryCount (§11.14.6.34).

§tx_direct_max_retry_expiry: Option<u32>

TxDirectMaxRetryExpiryCount (§11.14.6.35).

§tx_indirect_max_retry_expiry: Option<u32>

TxIndirectMaxRetryExpiryCount (§11.14.6.36).

§tx_err_cca: Option<u32>

TxErrCcaCount (§11.14.6.37).

§tx_err_abort: Option<u32>

TxErrAbortCount (§11.14.6.38).

§tx_err_busy_channel: Option<u32>

TxErrBusyChannelCount (§11.14.6.39).

§rx_total: Option<u32>

RxTotalCount (§11.14.6.40).

§rx_unicast: Option<u32>

RxUnicastCount (§11.14.6.41).

§rx_broadcast: Option<u32>

RxBroadcastCount (§11.14.6.42).

§rx_data: Option<u32>

RxDataCount (§11.14.6.43).

§rx_data_poll: Option<u32>

RxDataPollCount (§11.14.6.44).

§rx_beacon: Option<u32>

RxBeaconCount (§11.14.6.45).

§rx_beacon_request: Option<u32>

RxBeaconRequestCount (§11.14.6.46).

§rx_other: Option<u32>

RxOtherCount (§11.14.6.47).

§rx_address_filtered: Option<u32>

RxAddressFilteredCount (§11.14.6.48).

§rx_dest_addr_filtered: Option<u32>

RxDestAddrFilteredCount (§11.14.6.49).

§rx_duplicated: Option<u32>

RxDuplicatedCount (§11.14.6.50).

§rx_err_no_frame: Option<u32>

RxErrNoFrameCount (§11.14.6.51).

§rx_err_unknown_neighbor: Option<u32>

RxErrUnknownNeighborCount (§11.14.6.52).

§rx_err_invalid_src_addr: Option<u32>

RxErrInvalidSrcAddrCount (§11.14.6.53).

§rx_err_sec: Option<u32>

RxErrSecCount (§11.14.6.54).

§rx_err_fcs: Option<u32>

RxErrFcsCount (§11.14.6.55).

§rx_err_other: Option<u32>

RxErrOtherCount (§11.14.6.56).

Implementations§

Source§

impl MacCounters

Source

pub const EMPTY: Self

A device that keeps none of them.

Trait Implementations§

Source§

impl Clone for MacCounters

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for MacCounters

Source§

impl Debug for MacCounters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MacCounters

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for MacCounters

Source§

impl PartialEq for MacCounters

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MacCounters

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.