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, filter: &str, ) -> Result<ProcNetDev, ProcSysParserError>
pub fn read_proc_net_dev( proc_net_dev_file: &str, proc_net_dev_filter: &str, ) -> Result<ProcNetDev, ProcSysParserError>
Trait Implementations§
Source§impl Debug for ProcNetDev
impl Debug for ProcNetDev
Source§impl Default for ProcNetDev
impl Default for ProcNetDev
Source§fn default() -> ProcNetDev
fn default() -> ProcNetDev
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProcNetDev
impl PartialEq for ProcNetDev
impl StructuralPartialEq for ProcNetDev
Auto Trait Implementations§
impl Freeze for ProcNetDev
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