#[repr(align(64))]pub struct ThroughputMeter { /* private fields */ }
Expand description
Throughput meter for measuring data rates
Implementations§
Source§impl ThroughputMeter
impl ThroughputMeter
Sourcepub fn record_bytes(&self, bytes: u64)
pub fn record_bytes(&self, bytes: u64)
Record bytes transferred
Sourcepub fn bytes_per_second(&self) -> f64
pub fn bytes_per_second(&self) -> f64
Get bytes per second
Sourcepub fn kb_per_second(&self) -> f64
pub fn kb_per_second(&self) -> f64
Get kilobytes per second
Sourcepub fn mb_per_second(&self) -> f64
pub fn mb_per_second(&self) -> f64
Get megabytes per second
Sourcepub fn gb_per_second(&self) -> f64
pub fn gb_per_second(&self) -> f64
Get gigabytes per second
Sourcepub fn total_bytes(&self) -> u64
pub fn total_bytes(&self) -> u64
Get total bytes transferred
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ThroughputMeter
impl RefUnwindSafe for ThroughputMeter
impl Send for ThroughputMeter
impl Sync for ThroughputMeter
impl Unpin for ThroughputMeter
impl UnwindSafe for ThroughputMeter
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