Struct prioritized_metered_channel::oneshot::Measurements
source · pub struct Measurements { /* private fields */ }
Expand description
Obtained measurements by the Receiver
side of the MeteredOneshot
.
Implementations§
source§impl Measurements
impl Measurements
sourcepub fn duration_since_first_poll(&self) -> &CoarseDuration
pub fn duration_since_first_poll(&self) -> &CoarseDuration
Obtain the duration of a finished or canceled
oneshot
channel.
sourcepub fn duration_since_creation(&self) -> &CoarseDuration
pub fn duration_since_creation(&self) -> &CoarseDuration
Obtain the duration of a finished or canceled
oneshot
channel.
Trait Implementations§
source§impl Clone for Measurements
impl Clone for Measurements
source§fn clone(&self) -> Measurements
fn clone(&self) -> Measurements
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 more