pub struct NetworkStats {
pub bytes_recv: u64,
pub bytes_sent: u64,
pub packets_recv: u64,
pub packets_sent: u64,
pub errors: u64,
pub dropped: u64,
}Expand description
Network statistics
Fields§
§bytes_recv: u64Bytes received
bytes_sent: u64Bytes sent
packets_recv: u64Packets received
packets_sent: u64Packets sent
errors: u64Errors
dropped: u64Dropped packets
Trait Implementations§
Source§impl Clone for NetworkStats
impl Clone for NetworkStats
Source§fn clone(&self) -> NetworkStats
fn clone(&self) -> NetworkStats
Returns a duplicate 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 moreSource§impl Debug for NetworkStats
impl Debug for NetworkStats
Source§impl Default for NetworkStats
impl Default for NetworkStats
Source§fn default() -> NetworkStats
fn default() -> NetworkStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkStats
impl<'de> Deserialize<'de> for NetworkStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto 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