pub struct TrafficRates {
pub rxs: f64,
pub txs: f64,
pub rxpps: f64,
pub txpps: f64,
pub arxs: f64,
pub atxs: f64,
pub prxs: f64,
pub ptxs: f64,
}Expand description
Traffic statistics for an interface.
Fields§
§rxs: f64§txs: f64§rxpps: f64Received packets per second in the current sampling window.
txpps: f64Transmitted packets per second in the current sampling window.
arxs: f64§atxs: f64§prxs: f64§ptxs: f64Trait Implementations§
Source§impl Clone for TrafficRates
impl Clone for TrafficRates
Source§fn clone(&self) -> TrafficRates
fn clone(&self) -> TrafficRates
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 moreimpl Copy for TrafficRates
Source§impl Debug for TrafficRates
impl Debug for TrafficRates
Source§impl Default for TrafficRates
impl Default for TrafficRates
Source§fn default() -> TrafficRates
fn default() -> TrafficRates
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TrafficRates
impl RefUnwindSafe for TrafficRates
impl Send for TrafficRates
impl Sync for TrafficRates
impl Unpin for TrafficRates
impl UnsafeUnpin for TrafficRates
impl UnwindSafe for TrafficRates
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more