[−][src]Struct snafu::futures::try_future::Context
Future for the context
combinator.
See the TryFutureExt::context
method for more details.
Trait Implementations
impl<Fut, C, E> Unpin for Context<Fut, C, E> where
Fut: Unpin,
[src]
Fut: Unpin,
impl<Fut: Debug, C: Debug, E: Debug> Debug for Context<Fut, C, E>
[src]
impl<Fut, C, E> Future for Context<Fut, C, E> where
Fut: TryFuture,
C: IntoError<E, Source = Fut::Error>,
E: Error + ErrorCompat,
[src]
Fut: TryFuture,
C: IntoError<E, Source = Fut::Error>,
E: Error + ErrorCompat,
Auto Trait Implementations
impl<Fut, C, E> Sync for Context<Fut, C, E> where
C: Sync,
E: Sync,
Fut: Sync,
C: Sync,
E: Sync,
Fut: Sync,
impl<Fut, C, E> Send for Context<Fut, C, E> where
C: Send,
E: Send,
Fut: Send,
C: Send,
E: Send,
Fut: Send,
impl<Fut, C, E> RefUnwindSafe for Context<Fut, C, E> where
C: RefUnwindSafe,
E: RefUnwindSafe,
Fut: RefUnwindSafe,
C: RefUnwindSafe,
E: RefUnwindSafe,
Fut: RefUnwindSafe,
impl<Fut, C, E> UnwindSafe for Context<Fut, C, E> where
C: UnwindSafe,
E: UnwindSafe,
Fut: UnwindSafe,
C: UnwindSafe,
E: UnwindSafe,
Fut: UnwindSafe,
Blanket Implementations
impl<Fut> TryFutureExt for Fut where
Fut: TryFuture,
[src]
Fut: TryFuture,
ⓘImportant traits for Context<Fut, C, E>fn context<C, E>(Self, C) -> Context<Fut, C, E> where
C: IntoError<E, Source = <Fut as TryFuture>::Error>,
E: Error + ErrorCompat,
[src]
ⓘImportant traits for Context<Fut, C, E>
C: IntoError<E, Source = <Fut as TryFuture>::Error>,
E: Error + ErrorCompat,
ⓘImportant traits for WithContext<Fut, F, E>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]
ⓘImportant traits for WithContext<Fut, F, E>
C: IntoError<E, Source = <Fut as TryFuture>::Error>,
E: Error + ErrorCompat,
F: FnOnce() -> C,
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<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<F, T, E> TryFuture for F where
F: Future<Output = Result<T, E>> + ?Sized,
[src]
F: Future<Output = Result<T, E>> + ?Sized,