pub struct SpeedSample {
pub timestamp: Instant,
pub speed: f64,
pub bytes: u64,
pub duration: Duration,
pub concurrent_connections: u32,
pub chunk_size: u64,
pub server_url: String,
}Expand description
Speed measurement sample
Fields§
§timestamp: InstantTimestamp of measurement
speed: f64Download speed in bytes per second
bytes: u64Bytes downloaded in this sample
duration: DurationDuration of this sample
concurrent_connections: u32Concurrent connections used
chunk_size: u64Chunk size used
server_url: StringServer URL
Trait Implementations§
Source§impl Clone for SpeedSample
impl Clone for SpeedSample
Source§fn clone(&self) -> SpeedSample
fn clone(&self) -> SpeedSample
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 SpeedSample
impl RefUnwindSafe for SpeedSample
impl Send for SpeedSample
impl Sync for SpeedSample
impl Unpin for SpeedSample
impl UnsafeUnpin for SpeedSample
impl UnwindSafe for SpeedSample
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