Struct tracing_timing::SubscriberDowncaster
source · [−]pub struct SubscriberDowncaster<S, E> { /* private fields */ }
Expand description
A convenience type for getting access to TimingSubscriber
through a Dispatch
.
Implementations
sourceimpl<S, E> Downcaster<S, E> where
S: SpanGroup + 'static,
E: EventGroup + 'static,
S::Id: Clone + Hash + Eq + 'static,
E::Id: Clone + Hash + Eq + 'static,
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,
sourcepub fn downcast<'a>(
&self,
d: &'a Dispatch
) -> Option<&'a TimingSubscriber<S, E>>
pub fn downcast<'a>(
&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
sourceimpl<S, E> Clone for Downcaster<S, E>
impl<S, E> Clone for Downcaster<S, E>
sourceimpl<S: Debug, E: Debug> Debug for Downcaster<S, E>
impl<S: Debug, E: Debug> Debug for Downcaster<S, E>
impl<S: Copy, E: Copy> Copy for Downcaster<S, E>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more