pub struct ThroughputMetrics {
pub bytes_sent: u64,
pub bytes_received: u64,
pub duration: Duration,
pub packets_sent: u64,
pub packets_received: u64,
}
Expand description
Throughput metrics
Fields§
§bytes_sent: u64
Total bytes sent
bytes_received: u64
Total bytes received
duration: Duration
Measurement window duration
packets_sent: u64
Number of packets sent
packets_received: u64
Number of packets received
Trait Implementations§
Source§impl Clone for ThroughputMetrics
impl Clone for ThroughputMetrics
Source§fn clone(&self) -> ThroughputMetrics
fn clone(&self) -> ThroughputMetrics
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 moreAuto Trait Implementations§
impl Freeze for ThroughputMetrics
impl RefUnwindSafe for ThroughputMetrics
impl Send for ThroughputMetrics
impl Sync for ThroughputMetrics
impl Unpin for ThroughputMetrics
impl UnwindSafe for ThroughputMetrics
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