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 moresource§impl Debug for Measurements
impl Debug for Measurements
source§impl PartialEq<Measurements> for Measurements
impl PartialEq<Measurements> for Measurements
source§fn eq(&self, other: &Measurements) -> bool
fn eq(&self, other: &Measurements) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Measurements
impl StructuralEq for Measurements
impl StructuralPartialEq for Measurements
Auto Trait Implementations§
impl RefUnwindSafe for Measurements
impl Send for Measurements
impl Sync for Measurements
impl Unpin for Measurements
impl UnwindSafe for Measurements
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