Struct error_stack::future::FutureWithLazyContext
source · [−]pub struct FutureWithLazyContext<Fut, F> { /* private fields */ }
Available on crate feature
futures
only.Expand description
Adaptor returned by FutureExt::change_context_lazy
.
Trait Implementations
sourceimpl<Fut, F, T> Future for FutureWithLazyContext<Fut, F> where
Fut: Future,
Fut::Output: ResultExt,
F: FnOnce() -> T,
T: Context,
impl<Fut, F, T> Future for FutureWithLazyContext<Fut, F> where
Fut: Future,
Fut::Output: ResultExt,
F: FnOnce() -> T,
T: Context,
impl<'pin, Fut, F> Unpin for FutureWithLazyContext<Fut, F> where
__FutureWithLazyContext<'pin, Fut, F>: Unpin,
Auto Trait Implementations
impl<Fut, F> RefUnwindSafe for FutureWithLazyContext<Fut, F> where
F: RefUnwindSafe,
Fut: RefUnwindSafe,
impl<Fut, F> Send for FutureWithLazyContext<Fut, F> where
F: Send,
Fut: Send,
impl<Fut, F> Sync for FutureWithLazyContext<Fut, F> where
F: Sync,
Fut: Sync,
impl<Fut, F> UnwindSafe for FutureWithLazyContext<Fut, F> where
F: UnwindSafe,
Fut: 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