pub struct NetDevStats {
pub interface_id: InterfaceId,
pub name: String,
pub rx_bytes: u64,
pub rx_packets: u64,
pub rx_errors: u64,
pub rx_dropped: u64,
pub tx_bytes: u64,
pub tx_packets: u64,
pub tx_errors: u64,
pub tx_dropped: u64,
}Expand description
Per-interface cumulative RX/TX byte and packet counters.
Populated from the router data paths and read by /proc/net/dev. Byte
counts use L2 frame length (IP payload plus per-device L2 framing
overhead, excluding trailing FCS), aligned with Linux /proc/net/dev
semantics.
Fields§
§interface_id: InterfaceId§name: String§rx_bytes: u64§rx_packets: u64§rx_errors: u64§rx_dropped: u64§tx_bytes: u64§tx_packets: u64§tx_errors: u64§tx_dropped: u64Trait Implementations§
Source§impl Clone for NetDevStats
impl Clone for NetDevStats
Source§fn clone(&self) -> NetDevStats
fn clone(&self) -> NetDevStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NetDevStats
impl RefUnwindSafe for NetDevStats
impl Send for NetDevStats
impl Sync for NetDevStats
impl Unpin for NetDevStats
impl UnsafeUnpin for NetDevStats
impl UnwindSafe for NetDevStats
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