[][src]Enum ckb_metrics_service::Guard

#[must_use]pub enum Guard {
    Off,
    On {
        handle: Handle,
        stop: StopHandler<()>,
    },
}

Variants

Off
On

Fields of On

handle: Handlestop: StopHandler<()>

Trait Implementations

impl Drop for Guard[src]

Auto Trait Implementations

impl !RefUnwindSafe for Guard

impl Send for Guard

impl Sync for Guard

impl Unpin for Guard

impl !UnwindSafe for Guard

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.