[][src]Struct psutil::network::NetIOCountersCollector

pub struct NetIOCountersCollector { /* fields omitted */ }

Net counter struct to use nowrap mode

Methods

impl NetIOCountersCollector[src]

pub fn cache_clear(&mut self)[src]

Reset de cache for net_io_counters in nowrap mode

pub fn net_io_counters(&mut self, nowrap: bool) -> Result<NetIOCounters>[src]

Return system-wide network I/O statistics as a Result of NetIOCounters

If nowrap is true psutil will detect and adjust those numbers across function calls and add “old value” to “new value” so that the returned numbers will always be increasing or remain the same, but never decrease. net_io_counters.cache_clear() can be used to invalidate the nowrap cache.

pub fn net_io_counters_pernic(
    &mut self,
    nowrap: bool
) -> Result<HashMap<String, NetIOCounters>>
[src]

Return for every network interface of the system the I/O statistics as Result of vector of String and NetIOCounters tuple.

If nowrap is true psutil will detect and adjust those numbers across function calls and add “old value” to “new value” so that the returned numbers will always be increasing or remain the same, but never decrease. net_io_counters.cache_clear() can be used to invalidate the nowrap cache.

Trait Implementations

impl Default for NetIOCountersCollector[src]

impl Debug for NetIOCountersCollector[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]