Struct error_stack::future::FutureWithPrintableAttachment
source · [−]pub struct FutureWithPrintableAttachment<Fut, T> { /* private fields */ }
Available on crate feature
futures
only.Expand description
Adaptor returned by FutureExt::attach_printable
.
Trait Implementations
sourceimpl<Fut, T> Future for FutureWithPrintableAttachment<Fut, T> where
Fut: Future,
Fut::Output: ResultExt,
T: Display + Debug + Send + Sync + 'static,
impl<Fut, T> Future for FutureWithPrintableAttachment<Fut, T> where
Fut: Future,
Fut::Output: ResultExt,
T: Display + Debug + Send + Sync + 'static,
impl<'pin, Fut, T> Unpin for FutureWithPrintableAttachment<Fut, T> where
__FutureWithPrintableAttachment<'pin, Fut, T>: Unpin,
Auto Trait Implementations
impl<Fut, T> RefUnwindSafe for FutureWithPrintableAttachment<Fut, T> where
Fut: RefUnwindSafe,
T: RefUnwindSafe,
impl<Fut, T> Send for FutureWithPrintableAttachment<Fut, T> where
Fut: Send,
T: Send,
impl<Fut, T> Sync for FutureWithPrintableAttachment<Fut, T> where
Fut: Sync,
T: Sync,
impl<Fut, T> UnwindSafe for FutureWithPrintableAttachment<Fut, T> where
Fut: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn 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>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<F> IntoFuture for F where
F: Future,
impl<F> IntoFuture for F where
F: Future,
type Output = <F as Future>::Output
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type IntoFuture = F
type IntoFuture = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
sourcefn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more