pub struct SubscriberDowncaster<S, E> { /* private fields */ }
Expand description
A convenience type for getting access to TimingSubscriber
through a Dispatch
.
Implementations§
Source§impl<S, E> Downcaster<S, E>
impl<S, E> Downcaster<S, E>
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§
Source§impl<S, E> Clone for Downcaster<S, E>
impl<S, E> Clone for Downcaster<S, E>
impl<S: Copy, E: Copy> Copy for Downcaster<S, E>
Auto Trait Implementations§
impl<S, E> Freeze for Downcaster<S, E>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more