[−][src]Struct tracing_timing::SubscriberDowncaster
A convenience type for getting access to TimingSubscriber
through a Dispatch
.
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]
S: SpanGroup + 'static,
E: EventGroup + 'static,
S::Id: Clone + Hash + Eq + 'static,
E::Id: Clone + Hash + Eq + 'static,
pub fn downcast<'a>(
&self,
d: &'a Dispatch
) -> Option<&'a TimingSubscriber<S, E>>
[src]
&self,
d: &'a Dispatch
) -> Option<&'a TimingSubscriber<S, E>>
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,