Struct proc_sys_parser::net_dev::InterfaceStats
source · pub struct InterfaceStats {Show 17 fields
pub name: String,
pub receive_bytes: u64,
pub receive_packets: u64,
pub receive_errors: u64,
pub receive_drop: u64,
pub receive_fifo: u64,
pub receive_frame: u64,
pub receive_compressed: u64,
pub receive_multicast: u64,
pub transmit_bytes: u64,
pub transmit_packets: u64,
pub transmit_errors: u64,
pub transmit_drop: u64,
pub transmit_fifo: u64,
pub transmit_collisions: u64,
pub transmit_carrier: u64,
pub transmit_compressed: u64,
}Expand description
Struct for holding statistics of individual network interfaces
Fields§
§name: String§receive_bytes: u64§receive_packets: u64§receive_errors: u64§receive_drop: u64§receive_fifo: u64§receive_frame: u64§receive_compressed: u64§receive_multicast: u64§transmit_bytes: u64§transmit_packets: u64§transmit_errors: u64§transmit_drop: u64§transmit_fifo: u64§transmit_collisions: u64§transmit_carrier: u64§transmit_compressed: u64Trait Implementations§
source§impl Debug for InterfaceStats
impl Debug for InterfaceStats
source§impl PartialEq for InterfaceStats
impl PartialEq for InterfaceStats
source§fn eq(&self, other: &InterfaceStats) -> bool
fn eq(&self, other: &InterfaceStats) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for InterfaceStats
Auto Trait Implementations§
impl RefUnwindSafe for InterfaceStats
impl Send for InterfaceStats
impl Sync for InterfaceStats
impl Unpin for InterfaceStats
impl UnwindSafe for InterfaceStats
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