Struct tracing::instrument::WithDispatch [−][src]
pub struct WithDispatch<T> { /* fields omitted */ }
Expand description
A Future
that has been instrumented with a tracing
Subscriber
.
This type is returned by the WithSubscriber
extension trait. See that
trait’s documentation for details.
Implementations
Borrows the Dispatch
that is entered when this type is polled.
Get a pinned mutable reference to the wrapped type.
Consumes the Instrumented
, returning the wrapped type.
Note that this drops the span.
Trait Implementations
fn clone(&self) -> WithDispatch<T>ⓘNotable traits for WithDispatch<T>impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
fn clone(&self) -> WithDispatch<T>ⓘNotable traits for WithDispatch<T>impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for WithDispatch<T>
impl<T> Send for WithDispatch<T> where
T: Send,
impl<T> Sync for WithDispatch<T> where
T: Sync,
impl<T> !UnwindSafe for WithDispatch<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T: Future> Future for Instrumented<T> type Output = T::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T: Future> Future for Instrumented<T> type Output = T::Output;
impl<T: Future> Future for Instrumented<T> type Output = T::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T: Future> Future for Instrumented<T> type Output = T::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T: Future> Future for Instrumented<T> type Output = T::Output;
impl<T: Future> Future for Instrumented<T> type Output = T::Output;
The output that the future will produce on completion.
Creates a future from a value.
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
where
S: Into<Dispatch>,
impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more