pub struct IoCounters(/* private fields */);
Expand description
Network device I/O counters.
Implementations§
Source§impl IoCounters
impl IoCounters
Sourcepub fn bytes_sent(
&self,
) -> Quantity<dyn Dimension<J = Z0, L = Z0, Kind = dyn InformationKind, T = Z0, M = Z0, Th = Z0, I = Z0, N = Z0>, dyn Units<u64, electric_current = ampere, time = second, mass = kilogram, luminous_intensity = candela, length = meter, thermodynamic_temperature = kelvin, amount_of_substance = mole>, u64>
pub fn bytes_sent( &self, ) -> Quantity<dyn Dimension<J = Z0, L = Z0, Kind = dyn InformationKind, T = Z0, M = Z0, Th = Z0, I = Z0, N = Z0>, dyn Units<u64, electric_current = ampere, time = second, mass = kilogram, luminous_intensity = candela, length = meter, thermodynamic_temperature = kelvin, amount_of_substance = mole>, u64>
Returns information amount which was sent via this interface.
Sourcepub fn bytes_recv(
&self,
) -> Quantity<dyn Dimension<J = Z0, L = Z0, Kind = dyn InformationKind, T = Z0, M = Z0, Th = Z0, I = Z0, N = Z0>, dyn Units<u64, electric_current = ampere, time = second, mass = kilogram, luminous_intensity = candela, length = meter, thermodynamic_temperature = kelvin, amount_of_substance = mole>, u64>
pub fn bytes_recv( &self, ) -> Quantity<dyn Dimension<J = Z0, L = Z0, Kind = dyn InformationKind, T = Z0, M = Z0, Th = Z0, I = Z0, N = Z0>, dyn Units<u64, electric_current = ampere, time = second, mass = kilogram, luminous_intensity = candela, length = meter, thermodynamic_temperature = kelvin, amount_of_substance = mole>, u64>
Returns information amount which was received via this interface.
Sourcepub fn packets_sent(&self) -> u64
pub fn packets_sent(&self) -> u64
Returns packets amount which was sent via this interface.
Sourcepub fn packets_recv(&self) -> u64
pub fn packets_recv(&self) -> u64
Returns packets amount which was sent via this interface.
Sourcepub fn errors_sent(&self) -> u64
pub fn errors_sent(&self) -> u64
Returns errors amount which had occurred while sending data via this interface.
Sourcepub fn errors_recv(&self) -> u64
pub fn errors_recv(&self) -> u64
Returns errors amount which had occurred while receiving data via this interface.
Trait Implementations§
Source§impl Debug for IoCounters
impl Debug for IoCounters
Source§impl IoCountersExt for IoCounters
impl IoCountersExt for IoCounters
Auto Trait Implementations§
impl Freeze for IoCounters
impl !RefUnwindSafe for IoCounters
impl Send for IoCounters
impl Sync for IoCounters
impl Unpin for IoCounters
impl !UnwindSafe for IoCounters
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