pub struct PortStats {
pub rx_packets: u64,
pub tx_packets: u64,
pub rx_bytes: u64,
pub tx_bytes: u64,
pub rx_missed: u64,
pub rx_errors: u64,
pub tx_errors: u64,
pub rx_nombuf: u64,
}Expand description
Port statistics
Fields§
§rx_packets: u64Total received packets
tx_packets: u64Total transmitted packets
rx_bytes: u64Total received bytes
tx_bytes: u64Total transmitted bytes
rx_missed: u64Missed packets: NIC dropped them because the software RX descriptor
ring had no free slots (i.e. the app polled too slowly). Corresponds to
rte_eth_stats.imissed.
rx_errors: u64RX errors (corresponds to rte_eth_stats.ierrors).
tx_errors: u64TX errors (corresponds to rte_eth_stats.oerrors).
rx_nombuf: u64RX packets dropped because no mbuf was available from the mempool.
Corresponds to rte_eth_stats.rx_nombuf.
Trait Implementations§
impl Copy for PortStats
Auto Trait Implementations§
impl Freeze for PortStats
impl RefUnwindSafe for PortStats
impl Send for PortStats
impl Sync for PortStats
impl Unpin for PortStats
impl UnsafeUnpin for PortStats
impl UnwindSafe for PortStats
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
Mutably borrows from an owned value. Read more