Struct tracing_futures::Instrumented
source · [−]pub struct Instrumented<T> { /* private fields */ }
Expand description
A future, stream, sink, or executor that has been instrumented with a tracing
span.
Implementations
sourceimpl<T> Instrumented<T>
impl<T> Instrumented<T>
sourcepub fn span_mut(&mut self) -> &mut Span
pub fn span_mut(&mut self) -> &mut Span
Mutably borrows the Span
that this type is instrumented by.
sourcepub fn inner_pin_ref(self: Pin<&Self>) -> Pin<&T>
pub fn inner_pin_ref(self: Pin<&Self>) -> Pin<&T>
Get a pinned reference to the wrapped type.
sourcepub fn inner_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>
pub fn inner_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>
Get a pinned mutable reference to the wrapped type.
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes the Instrumented
, returning the wrapped type.
Note that this drops the span.
Trait Implementations
sourceimpl<T: Clone> Clone for Instrumented<T>
impl<T: Clone> Clone for Instrumented<T>
sourcefn 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;
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for Instrumented<T>
impl<T: Debug> Debug for Instrumented<T>
sourceimpl<T: Future> Future for Instrumented<T>
impl<T: Future> Future for Instrumented<T>
impl<'pin, T> Unpin for Instrumented<T>where
__Instrumented<'pin, T>: Unpin,
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
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn 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;
sourcefn 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;
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
type Output = <F as Future>::Output
type Output = <F as Future>::Output
The output that the future will produce on completion.
type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more