pub struct DirectionalTransferStats {
pub count: u64,
pub total_bytes: u64,
pub total_duration: Duration,
pub min_duration: Option<Duration>,
pub max_duration: Option<Duration>,
}Expand description
Directional transfer statistics
Fields§
§count: u64Number of transfers
total_bytes: u64Total bytes transferred
total_duration: DurationTotal transfer time
min_duration: Option<Duration>Minimum transfer time
max_duration: Option<Duration>Maximum transfer time
Implementations§
Source§impl DirectionalTransferStats
impl DirectionalTransferStats
Sourcepub fn bandwidth_gbs(&self) -> Option<f64>
pub fn bandwidth_gbs(&self) -> Option<f64>
Calculate average bandwidth in GB/s
Trait Implementations§
Source§impl Clone for DirectionalTransferStats
impl Clone for DirectionalTransferStats
Source§fn clone(&self) -> DirectionalTransferStats
fn clone(&self) -> DirectionalTransferStats
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 DirectionalTransferStats
impl Debug for DirectionalTransferStats
Source§impl Default for DirectionalTransferStats
impl Default for DirectionalTransferStats
Source§fn default() -> DirectionalTransferStats
fn default() -> DirectionalTransferStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DirectionalTransferStats
impl RefUnwindSafe for DirectionalTransferStats
impl Send for DirectionalTransferStats
impl Sync for DirectionalTransferStats
impl Unpin for DirectionalTransferStats
impl UnsafeUnpin for DirectionalTransferStats
impl UnwindSafe for DirectionalTransferStats
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