Struct tracing::instrument::Instrumented [−][src]
#[must_use = "futures do nothing unless you `.await` or poll them"]pub struct Instrumented<T> { /* fields omitted */ }
A future that has been instrumented with a tracing span.
Implementations
impl<T> Instrumented<T>[src]
impl<T> Instrumented<T>[src]pub fn span(&self) -> &Span[src]
Borrows the Span that this type is instrumented by.
pub fn span_mut(&mut self) -> &mut Span[src]
Mutably borrows the Span that this type is instrumented by.
pub fn inner(&self) -> &T[src]
Borrows the wrapped type.
pub fn inner_mut(&mut self) -> &mut T[src]
Mutably borrows the wrapped type.
pub fn inner_pin_ref(self: Pin<&Self>) -> Pin<&T>[src]
Get a pinned reference to the wrapped type.
pub fn inner_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>[src]
Get a pinned mutable reference to the wrapped type.
pub fn into_inner(self) -> T[src]
Consumes the Instrumented, returning the wrapped type.
Note that this drops the span.
Trait Implementations
impl<T: Clone> Clone for Instrumented<T>[src]
impl<T: Clone> Clone for Instrumented<T>[src]fn clone(&self) -> Instrumented<T>ⓘNotable traits for Instrumented<T>
impl<T: Future> Future for Instrumented<T> type Output = T::Output;[src]
Notable traits for Instrumented<T>
impl<T: Future> Future for Instrumented<T> type Output = T::Output;pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T: Future> Future for Instrumented<T>[src]
impl<T: Future> Future for Instrumented<T>[src]impl<'__pin, T> Unpin for Instrumented<T> where
__Origin<'__pin, T>: Unpin, [src]
__Origin<'__pin, T>: Unpin,
Auto Trait Implementations
impl<T> !RefUnwindSafe for Instrumented<T>
impl<T> Send for Instrumented<T> where
T: Send,
T: Send,
impl<T> Sync for Instrumented<T> where
T: Sync,
T: Sync,
impl<T> !UnwindSafe for Instrumented<T>
Blanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T: Future> Future for Instrumented<T> type Output = T::Output;[src]
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;[src]
Notable traits for Instrumented<T>
impl<T: Future> Future for Instrumented<T> type Output = T::Output;impl<F> IntoFuture for F where
F: Future, [src]
impl<F> IntoFuture for F where
F: Future, [src]type Output = <F as Future>::Output
The output that the future will produce on completion.
type Future = F
Which kind of future are we turning this into?