[][src]Struct tracing_timing::Downcaster

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

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

Methods

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

pub fn downcast<'a>(
    &self,
    d: &'a Dispatch
) -> Option<&'a TimingSubscriber<NH, 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<NH: Copy, S: Copy, E: Copy> Copy for Downcaster<NH, S, E>[src]

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

Auto Trait Implementations

impl<NH, S, E> Send for Downcaster<NH, S, E> where
    E: Send,
    NH: Send,
    S: Send

impl<NH, S, E> Unpin for Downcaster<NH, S, E> where
    E: Unpin,
    NH: Unpin,
    S: Unpin

impl<NH, S, E> Sync for Downcaster<NH, S, E> where
    E: Sync,
    NH: Sync,
    S: Sync

impl<NH, S, E> UnwindSafe for Downcaster<NH, S, E> where
    E: UnwindSafe,
    NH: UnwindSafe,
    S: UnwindSafe

impl<NH, S, E> RefUnwindSafe for Downcaster<NH, S, E> where
    E: RefUnwindSafe,
    NH: RefUnwindSafe,
    S: RefUnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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