[−][src]Struct psutil::network::NetIOCountersCollector
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]
&mut self,
nowrap: bool
) -> Result<HashMap<String, NetIOCounters>>
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]
fn default() -> NetIOCountersCollector
[src]
impl Debug for NetIOCountersCollector
[src]
Auto Trait Implementations
impl Sync for NetIOCountersCollector
impl Send for NetIOCountersCollector
impl Unpin for NetIOCountersCollector
impl RefUnwindSafe for NetIOCountersCollector
impl UnwindSafe for NetIOCountersCollector
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,