pub struct NetworkData {
pub interface: String,
pub rx_bytes: u64,
pub tx_bytes: u64,
pub rx_bytes_per_sec: u64,
pub tx_bytes_per_sec: u64,
}Expand description
Network interface metrics.
Fields§
§interface: StringInterface name (e.g., “eth0”, “wlan0”).
rx_bytes: u64Bytes received since last poll.
tx_bytes: u64Bytes transmitted since last poll.
rx_bytes_per_sec: u64Receive rate in bytes per second.
tx_bytes_per_sec: u64Transmit rate in bytes per second.
Trait Implementations§
Source§impl Clone for NetworkData
impl Clone for NetworkData
Source§fn clone(&self) -> NetworkData
fn clone(&self) -> NetworkData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NetworkData
impl Debug for NetworkData
Source§impl PartialEq for NetworkData
impl PartialEq for NetworkData
Source§fn eq(&self, other: &NetworkData) -> bool
fn eq(&self, other: &NetworkData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NetworkData
Auto Trait Implementations§
impl Freeze for NetworkData
impl RefUnwindSafe for NetworkData
impl Send for NetworkData
impl Sync for NetworkData
impl Unpin for NetworkData
impl UnsafeUnpin for NetworkData
impl UnwindSafe for NetworkData
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