pub struct Rate {
pub average_bps: Option<f64>,
pub packets_per_second: Option<f64>,
pub current_bps: Option<u64>,
pub max_bps: Option<u64>,
pub utilization_percent: Option<f64>,
pub bytes: Option<u64>,
}Expand description
The traffic in one direction between two reads.
Fields§
§average_bps: Option<f64>The average from the byte counters, in bit/s. None without
counters, or if one was reset in between, like after a reconnect.
packets_per_second: Option<f64>The average of packets per second.
current_bps: Option<u64>The latest rate the device measured at the second read, in bit/s.
max_bps: Option<u64>The highest rate the line allows, in bit/s.
utilization_percent: Option<f64>The average, else the latest rate, in percent of the highest.
bytes: Option<u64>The bytes in between.
Trait Implementations§
impl StructuralPartialEq for Rate
Auto Trait Implementations§
impl Forget for Rate
impl Freeze for Rate
impl Move for Rate
impl RefUnwindSafe for Rate
impl Send for Rate
impl Sync for Rate
impl Unpin for Rate
impl UnsafeUnpin for Rate
impl UnwindSafe for Rate
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