pub struct DriverCounters {
pub rx_calls: u32,
pub rx_some: u32,
pub rx_dropped: u32,
pub tx_calls: u32,
pub tx_some: u32,
pub tx_dropped: u32,
}Expand description
Diagnostic snapshot of the Driver::receive / Driver::transmit
path: how many times embassy-net asked for a token, how many of
those calls actually had a frame, and how many frames the tokens
failed to push to / pull from the EMAC.
Fields§
§rx_calls: u32Calls to Driver::receive.
rx_some: u32Calls that returned a non-empty token pair (frame available).
rx_dropped: u32Frames silently dropped in EmacRxToken::consume because the
underlying Emac::receive returned Err(_) or Ok(None) after
the driver had already handed out a token. Indicates either an
errored frame (CRC, oversize) or a race where another path
consumed the descriptor first.
tx_calls: u32Calls to Driver::transmit.
tx_some: u32Calls that returned a token (TX path was ready).
tx_dropped: u32Frames silently dropped in EmacTxToken::consume because
Emac::transmit returned Err(_) after the driver had already
handed out a token. Typical cause: descriptor ring exhausted
between the readiness check and the actual push.
Trait Implementations§
Source§impl Clone for DriverCounters
impl Clone for DriverCounters
Source§fn clone(&self) -> DriverCounters
fn clone(&self) -> DriverCounters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more