Struct libp2p_perf::RunDuration
source · pub struct RunDuration {
pub upload: Duration,
pub download: Duration,
}
Expand description
Duration for a single run, i.e. one stream, sending and receiving data.
Fields§
§upload: Duration
§download: Duration
Trait Implementations§
source§impl Clone for RunDuration
impl Clone for RunDuration
source§fn clone(&self) -> RunDuration
fn clone(&self) -> RunDuration
Returns a copy 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 RunDuration
impl Debug for RunDuration
impl Copy for RunDuration
Auto Trait Implementations§
impl RefUnwindSafe for RunDuration
impl Send for RunDuration
impl Sync for RunDuration
impl Unpin for RunDuration
impl UnwindSafe for RunDuration
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