pub struct ThroughputSummary {
pub bytes_sent: u64,
pub bytes_received: u64,
pub packets_sent: u64,
pub packets_received: u64,
pub duration: Duration,
pub send_rate_mbps: f64,
pub recv_rate_mbps: f64,
}
Expand description
Throughput summary
Fields§
§bytes_sent: u64
Total bytes sent
bytes_received: u64
Total bytes received
packets_sent: u64
Number of packets sent
packets_received: u64
Number of packets received
duration: Duration
Measurement window duration
send_rate_mbps: f64
Calculated send rate in megabits per second
recv_rate_mbps: f64
Calculated receive rate in megabits per second
Trait Implementations§
Source§impl Clone for ThroughputSummary
impl Clone for ThroughputSummary
Source§fn clone(&self) -> ThroughputSummary
fn clone(&self) -> ThroughputSummary
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 ThroughputSummary
impl RefUnwindSafe for ThroughputSummary
impl Send for ThroughputSummary
impl Sync for ThroughputSummary
impl Unpin for ThroughputSummary
impl UnwindSafe for ThroughputSummary
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