Struct proc_sys_parser::net_dev::ProcNetDev
source · pub struct ProcNetDev {
pub interface: Vec<InterfaceStats>,
}Expand description
Struct for holding /proc/net/dev statistics
Fields§
§interface: Vec<InterfaceStats>Implementations§
source§impl ProcNetDev
impl ProcNetDev
pub fn new() -> ProcNetDev
pub fn parse_proc_net_dev(proc_net_dev: &str) -> ProcNetDev
pub fn read_proc_net_dev(proc_net_dev_file: &str) -> ProcNetDev
Trait Implementations§
source§impl Debug for ProcNetDev
impl Debug for ProcNetDev
source§impl Default for ProcNetDev
impl Default for ProcNetDev
source§impl PartialEq for ProcNetDev
impl PartialEq for ProcNetDev
source§fn eq(&self, other: &ProcNetDev) -> bool
fn eq(&self, other: &ProcNetDev) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ProcNetDev
Auto Trait Implementations§
impl RefUnwindSafe for ProcNetDev
impl Send for ProcNetDev
impl Sync for ProcNetDev
impl Unpin for ProcNetDev
impl UnwindSafe for ProcNetDev
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