pub struct Throughput {
pub tx_bytes: u64,
pub rx_bytes: u64,
pub period: Duration,
}Expand description
Throughput over a time period.
Fields§
§tx_bytes: u64§rx_bytes: u64§period: DurationTrait Implementations§
Source§impl Clone for Throughput
impl Clone for Throughput
Source§fn clone(&self) -> Throughput
fn clone(&self) -> Throughput
Returns a duplicate of the value. Read more
1.0.0 · 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 Throughput
impl Debug for Throughput
Source§impl Default for Throughput
impl Default for Throughput
Source§fn default() -> Throughput
fn default() -> Throughput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Throughput
impl<'de> Deserialize<'de> for Throughput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Throughput
impl Serialize for Throughput
impl Copy for Throughput
Auto Trait Implementations§
impl Freeze for Throughput
impl RefUnwindSafe for Throughput
impl Send for Throughput
impl Sync for Throughput
impl Unpin for Throughput
impl UnsafeUnpin for Throughput
impl UnwindSafe for Throughput
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