pub struct IoCounters(/* private fields */);
Expand description
Network device I/O counters.
Implementations§
Source§impl IoCounters
impl IoCounters
Sourcepub fn bytes_sent(&self) -> Information
pub fn bytes_sent(&self) -> Information
Returns information amount which was sent via this interface.
Sourcepub fn bytes_recv(&self) -> Information
pub fn bytes_recv(&self) -> Information
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