#[non_exhaustive]pub struct Totals {
pub received: Bytes,
pub sent: Bytes,
pub packets_received: u64,
pub packets_sent: u64,
pub errors: u64,
pub dropped: u64,
}Expand description
Bytes and packets moved since boot, every interface but loopback.
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.received: BytesBytes received.
sent: BytesBytes sent.
packets_received: u64Packets received.
packets_sent: u64Packets sent.
errors: u64Errors, both directions.
dropped: u64Packets dropped, both directions.
Trait Implementations§
impl Copy for Totals
impl Eq for Totals
impl StructuralPartialEq for Totals
Auto Trait Implementations§
impl Freeze for Totals
impl RefUnwindSafe for Totals
impl Send for Totals
impl Sync for Totals
impl Unpin for Totals
impl UnsafeUnpin for Totals
impl UnwindSafe for Totals
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