#[non_exhaustive]pub struct Counters {
pub interface: String,
pub received: Bytes,
pub sent: Bytes,
pub packets_received: u64,
pub packets_sent: u64,
pub errors_in: u64,
pub errors_out: u64,
pub dropped_in: u64,
pub dropped_out: u64,
}Expand description
One interface’s cumulative counters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.interface: StringThe interface’s name.
received: BytesBytes received.
sent: BytesBytes sent.
packets_received: u64Packets received.
packets_sent: u64Packets sent.
errors_in: u64Receive errors.
errors_out: u64Transmit errors.
dropped_in: u64Received packets dropped.
dropped_out: u64Packets dropped before sending.
Trait Implementations§
impl Eq for Counters
impl StructuralPartialEq for Counters
Auto Trait Implementations§
impl Forget for Counters
impl Freeze for Counters
impl Move for Counters
impl RefUnwindSafe for Counters
impl Send for Counters
impl Sync for Counters
impl Unpin for Counters
impl UnsafeUnpin for Counters
impl UnwindSafe for Counters
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