pub struct InterfaceStats {
pub rx_bytes: u64,
pub tx_bytes: u64,
pub timestamp: Option<SystemTime>,
}
Expand description
Interface traffic statistics at a given point in time.
Fields§
§rx_bytes: u64
Total received bytes on this interface.
tx_bytes: u64
Total transmitted bytes on this interface.
timestamp: Option<SystemTime>
The system timestamp when this snapshot was taken.
May be None
if the platform does not support it.
Trait Implementations§
Source§impl Clone for InterfaceStats
impl Clone for InterfaceStats
Source§fn clone(&self) -> InterfaceStats
fn clone(&self) -> InterfaceStats
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InterfaceStats
impl Debug for InterfaceStats
Source§impl Hash for InterfaceStats
impl Hash for InterfaceStats
Source§impl PartialEq for InterfaceStats
impl PartialEq for InterfaceStats
impl Eq for InterfaceStats
impl StructuralPartialEq for InterfaceStats
Auto Trait Implementations§
impl Freeze for InterfaceStats
impl RefUnwindSafe for InterfaceStats
impl Send for InterfaceStats
impl Sync for InterfaceStats
impl Unpin for InterfaceStats
impl UnwindSafe for InterfaceStats
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