Struct tracing::instrument::Instrumented [−][src]
pub struct Instrumented<T> { /* fields omitted */ }
Expand description
A future that has been instrumented with a tracing
span.
Implementations
Mutably borrows the Span
that this type is instrumented by.
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) -> Instrumented<T>ⓘNotable traits for Instrumented<T>impl<T: Future> Future for Instrumented<T> type Output = T::Output;
fn clone(&self) -> Instrumented<T>ⓘNotable traits for Instrumented<T>impl<T: Future> Future for Instrumented<T> type Output = T::Output;
Notable traits for Instrumented<T>
impl<T: Future> Future for Instrumented<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 Instrumented<T>
impl<T> Send for Instrumented<T> where
T: Send,
impl<T> Sync for Instrumented<T> where
T: Sync,
impl<T> !UnwindSafe for Instrumented<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;
Notable traits for Instrumented<T>
impl<T: Future> Future for Instrumented<T> type Output = T::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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;
Notable traits for Instrumented<T>
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.