[−][src]Struct snafu::futures::try_future::WithContext
Future for the with_context
combinator.
See the TryFutureExt::with_context
method for more details.
Trait Implementations
impl<Fut: Debug, F: Debug, E: Debug> Debug for WithContext<Fut, F, E>
[src]
impl<Fut, F, C, E> Future for WithContext<Fut, F, E> where
Fut: TryFuture,
F: FnOnce() -> C,
C: IntoError<E, Source = Fut::Error>,
E: Error + ErrorCompat,
[src]
Fut: TryFuture,
F: FnOnce() -> C,
C: IntoError<E, Source = Fut::Error>,
E: Error + ErrorCompat,
type Output = Result<Fut::Ok, E>
The type of value produced on completion.
fn poll(self: Pin<&mut Self>, ctx: &mut TaskContext) -> Poll<Self::Output>
[src]
impl<Fut, F, E> PinnedDrop for WithContext<Fut, F, E>
[src]
impl<'pin, Fut, F, E> Unpin for WithContext<Fut, F, E> where
__WithContext<'pin, Fut, F, E>: Unpin,
[src]
__WithContext<'pin, Fut, F, E>: Unpin,
Auto Trait Implementations
impl<Fut, F, E> RefUnwindSafe for WithContext<Fut, F, E> where
E: RefUnwindSafe,
F: RefUnwindSafe,
Fut: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
Fut: RefUnwindSafe,
impl<Fut, F, E> Send for WithContext<Fut, F, E> where
E: Send,
F: Send,
Fut: Send,
E: Send,
F: Send,
Fut: Send,
impl<Fut, F, E> Sync for WithContext<Fut, F, E> where
E: Sync,
F: Sync,
Fut: Sync,
E: Sync,
F: Sync,
Fut: Sync,
impl<Fut, F, E> UnwindSafe for WithContext<Fut, F, E> where
E: UnwindSafe,
F: UnwindSafe,
Fut: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
Fut: UnwindSafe,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<F, T, E> TryFuture for F where
F: Future<Output = Result<T, E>> + ?Sized,
[src]
F: Future<Output = Result<T, E>> + ?Sized,
type Ok = T
The type of successful values yielded by this future
type Error = E
The type of failures yielded by this future
fn try_poll(self: Pin<&mut F>, cx: &mut Context) -> Poll<<F as Future>::Output>
[src]
impl<Fut> TryFutureExt for Fut where
Fut: TryFuture,
[src]
Fut: TryFuture,
fn context<C, E>(Self, C) -> Context<Fut, C, E> where
C: IntoError<E, Source = <Fut as TryFuture>::Error>,
E: Error + ErrorCompat,
[src]
C: IntoError<E, Source = <Fut as TryFuture>::Error>,
E: Error + ErrorCompat,
fn with_context<F, C, E>(Self, F) -> WithContext<Fut, F, E> where
C: IntoError<E, Source = <Fut as TryFuture>::Error>,
E: Error + ErrorCompat,
F: FnOnce() -> C,
[src]
C: IntoError<E, Source = <Fut as TryFuture>::Error>,
E: Error + ErrorCompat,
F: FnOnce() -> C,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,