Struct WithDispatch
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct WithDispatch<T> { /* private fields */ }
A Future that has been instrumented with a tracing Subscriber.
This type is returned by the WithSubscriber extension trait. See that
trait's documentation for details.
Implementations
impl<T> WithDispatch<T>
fn dispatcher(&self) -> &DispatchBorrows the
Dispatchthat is entered when this type is polled.fn inner(&self) -> &TBorrows the wrapped type.
fn inner_mut(&mut self) -> &mut TMutably borrows the wrapped type.
fn inner_pin_ref(self: Pin<&Self>) -> Pin<&T>Get a pinned reference to the wrapped type.
fn inner_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>Get a pinned mutable reference to the wrapped type.
fn into_inner(self) -> TConsumes the
Instrumented, returning the wrapped type.Note that this drops the span.
Trait Implementations
impl<'__pin, T> Unpin for WithDispatch<T>
where
PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,
impl<T: Clone> Clone for WithDispatch<T>
fn clone(&self) -> WithDispatch<T>
impl<T: Debug> Debug for WithDispatch<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Future> Future for WithDispatch<T>
type Output = <T as Future>::Output;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
Auto Trait Implementations
impl<T> !RefUnwindSafe for WithDispatch<T>
impl<T> !UnwindSafe for WithDispatch<T>
impl<T> Freeze for WithDispatch<T>
where
T: Freeze,
impl<T> Send for WithDispatch<T>
where
T: Send,
impl<T> Sync for WithDispatch<T>
where
T: Sync,
impl<T> UnsafeUnpin for WithDispatch<T>
where
T: UnsafeUnpin,
Blanket Implementations
impl<F> IntoFuture for WithDispatch<T>
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<T> Any for WithDispatch<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for WithDispatch<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for WithDispatch<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for WithDispatch<T>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for WithDispatch<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for WithDispatch<T>
impl<T> ToOwned for WithDispatch<T>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for WithDispatch<T>
impl<T, U> Into<U> for WithDispatch<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for WithDispatch<T>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for WithDispatch<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>