Struct snafu::futures::try_future::WithWhateverContext
source · pub struct WithWhateverContext<Fut, F, E> { /* private fields */ }
Expand description
Future for the
with_whatever_context
combinator.
See the TryFutureExt::with_whatever_context
method for more
details.
Trait Implementations§
source§impl<Fut, F, S, E> Future for WithWhateverContext<Fut, F, E>
impl<Fut, F, S, E> Future for WithWhateverContext<Fut, F, E>
impl<'pin, Fut, F, E> Unpin for WithWhateverContext<Fut, F, E>where
__WithWhateverContext<'pin, Fut, F, E>: Unpin,
Auto Trait Implementations§
impl<Fut, F, E> Freeze for WithWhateverContext<Fut, F, E>
impl<Fut, F, E> RefUnwindSafe for WithWhateverContext<Fut, F, E>
impl<Fut, F, E> Send for WithWhateverContext<Fut, F, E>
impl<Fut, F, E> Sync for WithWhateverContext<Fut, F, E>
impl<Fut, F, E> UnwindSafe for WithWhateverContext<Fut, F, E>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more
§impl<F, T, E> TryFuture for F
impl<F, T, E> TryFuture for F
source§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture,
impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture,
source§fn context<C, E>(self, context: C) -> Context<Fut, C, E> ⓘ
fn context<C, E>(self, context: C) -> Context<Fut, C, E> ⓘ
Extend a [
TryFuture
]’s error with additional context-sensitive
information. Read moresource§fn with_context<F, C, E>(self, context: F) -> WithContext<Fut, F, E> ⓘwhere
F: FnOnce(&mut <Fut as TryFuture>::Error) -> C,
C: IntoError<E, Source = <Fut as TryFuture>::Error>,
E: Error + ErrorCompat,
fn with_context<F, C, E>(self, context: F) -> WithContext<Fut, F, E> ⓘwhere
F: FnOnce(&mut <Fut as TryFuture>::Error) -> C,
C: IntoError<E, Source = <Fut as TryFuture>::Error>,
E: Error + ErrorCompat,
Extend a [
TryFuture
]’s error with lazily-generated context-sensitive
information. Read moresource§fn whatever_context<S, E>(self, context: S) -> WhateverContext<Fut, S, E> ⓘ
fn whatever_context<S, E>(self, context: S) -> WhateverContext<Fut, S, E> ⓘ
Extend a [
TryFuture
]’s error with information from a string. Read moresource§fn with_whatever_context<F, S, E>(
self,
context: F,
) -> WithWhateverContext<Fut, F, E> ⓘ
fn with_whatever_context<F, S, E>( self, context: F, ) -> WithWhateverContext<Fut, F, E> ⓘ
Extend a [
TryFuture
]’s error with information from a
lazily-generated string. Read more