#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rx_bytes: u64Total received bytes.
tx_bytes: u64Total transmitted bytes.
timestamp: Option<SystemTime>Time at which the counters were sampled.
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 (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 InterfaceStats
impl Debug for InterfaceStats
impl Eq for InterfaceStats
Source§impl From<InterfaceStats> for InterfaceStats
impl From<InterfaceStats> for InterfaceStats
Source§fn from(value: InterfaceStats) -> Self
fn from(value: InterfaceStats) -> Self
Converts to this type from the input type.
Source§impl Hash for InterfaceStats
impl Hash for InterfaceStats
Source§impl PartialEq for InterfaceStats
impl PartialEq 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 UnsafeUnpin 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