pub struct Counters {
pub bytes_sent: Option<u64>,
pub bytes_received: Option<u64>,
pub packets_sent: Option<u64>,
pub packets_received: Option<u64>,
pub errors_sent: Option<u64>,
pub errors_received: Option<u64>,
pub discarded_sent: Option<u64>,
pub discarded_received: Option<u64>,
}Expand description
The counters of an interface, where the device reports them.
Fields§
§bytes_sent: Option<u64>§bytes_received: Option<u64>§packets_sent: Option<u64>§packets_received: Option<u64>§errors_sent: Option<u64>§errors_received: Option<u64>§discarded_sent: Option<u64>§discarded_received: Option<u64>Implementations§
Trait Implementations§
impl Copy for Counters
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