[][src]Struct tracing_timing::SubscriberDowncaster

pub struct SubscriberDowncaster<S, E> { /* fields omitted */ }

A convenience type for getting access to TimingSubscriber through a Dispatch.

See TimingSubscriber::downcaster.

Methods

impl<S, E> Downcaster<S, E> where
    S: SpanGroup + 'static,
    E: EventGroup + 'static,
    S::Id: Clone + Hash + Eq + 'static,
    E::Id: Clone + Hash + Eq + 'static, 
[src]

pub fn downcast<'a>(
    &self,
    d: &'a Dispatch
) -> Option<&'a TimingSubscriber<S, E>>
[src]

Retrieve a reference to this ident's original TimingSubscriber.

This method returns None if the given Dispatch is not holding a subscriber of the same type as this ident was created from.

Trait Implementations

impl<S, E> Clone for Downcaster<S, E>[src]

impl<S: Copy, E: Copy> Copy for Downcaster<S, E>[src]

impl<S: Debug, E: Debug> Debug for Downcaster<S, E>[src]

Auto Trait Implementations

impl<S, E> RefUnwindSafe for Downcaster<S, E>

impl<S, E> Send for Downcaster<S, E>

impl<S, E> Sync for Downcaster<S, E>

impl<S, E> Unpin for Downcaster<S, E>

impl<S, E> UnwindSafe for Downcaster<S, E>

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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.