pub struct InterfaceTrafficWindow {
pub rx_bytes: u64,
pub tx_bytes: u64,
pub sampled_for: Duration,
}Expand description
Traffic transferred over a rolling interface-counter window.
Fields§
§rx_bytes: u64§tx_bytes: u64§sampled_for: DurationTrait Implementations§
Source§impl Clone for InterfaceTrafficWindow
impl Clone for InterfaceTrafficWindow
Source§fn clone(&self) -> InterfaceTrafficWindow
fn clone(&self) -> InterfaceTrafficWindow
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 InterfaceTrafficWindow
impl Debug for InterfaceTrafficWindow
Source§impl Default for InterfaceTrafficWindow
impl Default for InterfaceTrafficWindow
Source§fn default() -> InterfaceTrafficWindow
fn default() -> InterfaceTrafficWindow
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InterfaceTrafficWindow
impl RefUnwindSafe for InterfaceTrafficWindow
impl Send for InterfaceTrafficWindow
impl Sync for InterfaceTrafficWindow
impl Unpin for InterfaceTrafficWindow
impl UnsafeUnpin for InterfaceTrafficWindow
impl UnwindSafe for InterfaceTrafficWindow
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