[−][src]Struct tracing_futures::Instrumented 
A future, stream, sink, or executor that has been instrumented with a tracing span.
Methods
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]
ⓘImportant traits for Instrumented<T>fn clone(&self) -> Instrumented<T>[src]
ⓘImportant traits for Instrumented<T>
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T: Debug> Debug for Instrumented<T>[src]
impl<T: Future> Future for Instrumented<T>[src]
type Output = T::Output
The type of value produced on completion.
fn poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output>[src]
impl<T> PinnedDrop for Instrumented<T>[src]
impl<'pin, T> Unpin for Instrumented<T> where
    __Instrumented<'pin, T>: Unpin, [src]
__Instrumented<'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> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
ⓘImportant traits for Instrumented<T>fn instrument(self, span: Span) -> Instrumented<Self>[src]
ⓘImportant traits for Instrumented<T>
ⓘImportant traits for Instrumented<T>fn in_current_span(self) -> Instrumented<Self>[src]
ⓘImportant traits for Instrumented<T>
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
    T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> WithSubscriber for T[src]
ⓘImportant traits for WithDispatch<T>fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, [src]
ⓘImportant traits for WithDispatch<T>
S: Into<Dispatch>,
ⓘImportant traits for WithDispatch<T>fn with_current_subscriber(self) -> WithDispatch<Self>[src]
ⓘImportant traits for WithDispatch<T>