pub struct IdleRecorder<T, C: Counter>where
    T: BorrowMut<Recorder<C>>,{ /* private fields */ }
Expand description

This guard denotes that a Recorder is currently idle, and should not be waited on by a SyncHistogram phase-shift.

Implementations§

source§

impl<C: Counter> IdleRecorder<Recorder<C>, C>

source

pub fn activate(self) -> Recorder<C>

Mark the wrapped Recorder as active again and return it.

source

pub fn recorder(&self) -> Recorder<C>

Clone the wrapped Recorder.

Trait Implementations§

source§

impl<T, C: Debug + Counter> Debug for IdleRecorder<T, C>where T: BorrowMut<Recorder<C>> + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T, C: Counter> Drop for IdleRecorder<T, C>where T: BorrowMut<Recorder<C>>,

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<T, C> RefUnwindSafe for IdleRecorder<T, C>where C: RefUnwindSafe, T: RefUnwindSafe,

§

impl<T, C> Send for IdleRecorder<T, C>where C: Send, T: Send,

§

impl<T, C> Sync for IdleRecorder<T, C>where C: Sync, T: Sync,

§

impl<T, C> Unpin for IdleRecorder<T, C>where C: Unpin, T: Unpin,

§

impl<T, C> UnwindSafe for IdleRecorder<T, C>where C: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.