pub struct BandwidthSample {
pub bytes: u64,
pub duration_ms: u64,
pub timestamp: Instant,
}Expand description
A single bandwidth measurement sample.
Fields§
§bytes: u64Bytes downloaded in this measurement.
duration_ms: u64Wall-clock download time in milliseconds.
timestamp: InstantInstant when the sample was recorded.
Trait Implementations§
Source§impl Clone for BandwidthSample
impl Clone for BandwidthSample
Source§fn clone(&self) -> BandwidthSample
fn clone(&self) -> BandwidthSample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BandwidthSample
impl RefUnwindSafe for BandwidthSample
impl Send for BandwidthSample
impl Sync for BandwidthSample
impl Unpin for BandwidthSample
impl UnsafeUnpin for BandwidthSample
impl UnwindSafe for BandwidthSample
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