Struct tracing_futures::WithDispatch [−][src]
A future, stream, sink, or executor that has been instrumented with a
tracing
subscriber.
Implementations
impl<T> WithDispatch<T>
[src]
pub fn with_dispatch<U>(&self, inner: U) -> WithDispatch<U>ⓘNotable traits for WithDispatch<T>
impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
[src]
Notable traits for WithDispatch<T>
impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
Wrap a future, stream, sink or executor with the same subscriber as this WithDispatch.
pub fn dispatch(&self) -> &Dispatch
[src]
Borrows the Dispatch
that this type is instrumented by.
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 inner(&self) -> &T
[src]
Borrows the wrapped type.
pub fn inner_mut(&mut self) -> &mut T
[src]
Mutably borrows the wrapped type.
pub fn into_inner(self) -> T
[src]
Consumes the WithDispatch
, returning the wrapped type.
Trait Implementations
impl<T: Clone> Clone for WithDispatch<T>
[src]
fn clone(&self) -> WithDispatch<T>ⓘNotable traits for WithDispatch<T>
impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
[src]
Notable traits for WithDispatch<T>
impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for WithDispatch<T>
[src]
impl<T: Future> Future for WithDispatch<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<'pin, T> Unpin for WithDispatch<T> where
__WithDispatch<'pin, T>: Unpin,
[src]
__WithDispatch<'pin, T>: Unpin,
Auto Trait Implementations
impl<T> !RefUnwindSafe for WithDispatch<T>
impl<T> Send for WithDispatch<T> where
T: Send,
T: Send,
impl<T> Sync for WithDispatch<T> where
T: Sync,
T: Sync,
impl<T> !UnwindSafe for WithDispatch<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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> 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<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> IntoFuture for F where
F: Future,
[src]
F: Future,
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?
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> WithSubscriber for T
[src]
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>,
[src]
Notable traits for WithDispatch<T>
impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
S: Into<Dispatch>,
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>
impl<T: Future> Future for WithDispatch<T> type Output = T::Output;
[src]
Notable traits for WithDispatch<T>
impl<T: Future> Future for WithDispatch<T> type Output = T::Output;