pub struct NetworkStats {
pub rx_bytes: ByteSize,
pub tx_bytes: ByteSize,
pub rx_packets: u64,
pub tx_packets: u64,
pub rx_errors: u64,
pub tx_errors: u64,
}
Fields§
§rx_bytes: ByteSize
§tx_bytes: ByteSize
§rx_packets: u64
§tx_packets: u64
§rx_errors: u64
§tx_errors: u64
Trait Implementations§
Source§impl Clone for NetworkStats
impl Clone for NetworkStats
Source§fn clone(&self) -> NetworkStats
fn clone(&self) -> NetworkStats
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for NetworkStats
impl RefUnwindSafe for NetworkStats
impl Send for NetworkStats
impl Sync for NetworkStats
impl Unpin for NetworkStats
impl UnwindSafe for NetworkStats
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