#[non_exhaustive]pub struct Traffic {
pub download: Rate,
pub upload: Rate,
pub packets_in_per_sec: f64,
pub packets_out_per_sec: f64,
pub interval: Duration,
}Expand description
Download and upload over an interval.
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.download: RateBytes received per second.
upload: RateBytes sent per second.
packets_in_per_sec: f64Packets received per second.
packets_out_per_sec: f64Packets sent per second.
interval: DurationThe time the values cover.
Trait Implementations§
impl Copy for Traffic
impl StructuralPartialEq for Traffic
Auto Trait Implementations§
impl Forget for Traffic
impl Freeze for Traffic
impl Move for Traffic
impl RefUnwindSafe for Traffic
impl Send for Traffic
impl Sync for Traffic
impl Unpin for Traffic
impl UnsafeUnpin for Traffic
impl UnwindSafe for Traffic
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