[][src]Struct new_tokio_smtp::future_ext::CtxAndThen

pub struct CtxAndThen<P, B, FN> where
    B: IntoFuture
{ /* fields omitted */ }

future adapter see ResultWithContextExt::ctx_and_then

Trait Implementations

impl<P, B, FN, Ctx, I, I2, E> Future for CtxAndThen<P, B, FN> where
    P: Future<Item = (Ctx, Result<I, E>)>,
    FN: FnOnce(Ctx, I) -> B,
    B: IntoFuture<Item = (Ctx, Result<I2, E>), Error = P::Error>, 
[src]

type Item = (Ctx, Result<I2, E>)

The type of value that this future will resolved with if it is successful. Read more

type Error = P::Error

The type of error that this future will resolve with if it fails in a normal fashion. Read more

Auto Trait Implementations

impl<P, B, FN> RefUnwindSafe for CtxAndThen<P, B, FN> where
    FN: RefUnwindSafe,
    P: RefUnwindSafe,
    <B as IntoFuture>::Future: RefUnwindSafe

impl<P, B, FN> Send for CtxAndThen<P, B, FN> where
    FN: Send,
    P: Send,
    <B as IntoFuture>::Future: Send

impl<P, B, FN> Sync for CtxAndThen<P, B, FN> where
    FN: Sync,
    P: Sync,
    <B as IntoFuture>::Future: Sync

impl<P, B, FN> Unpin for CtxAndThen<P, B, FN> where
    FN: Unpin,
    P: Unpin,
    <B as IntoFuture>::Future: Unpin

impl<P, B, FN> UnwindSafe for CtxAndThen<P, B, FN> where
    FN: UnwindSafe,
    P: UnwindSafe,
    <B as IntoFuture>::Future: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T where
    T: Future + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<F> IntoFuture for F where
    F: Future
[src]

type Future = F

The future that this type can be converted into.

type Item = <F as Future>::Item

The item that the future may resolve with.

type Error = <F as Future>::Error

The error that the future may resolve with.

impl<Ctx, I, E, FUT> ResultWithContextExt<Ctx, I, E> for FUT where
    FUT: Future<Item = (Ctx, Result<I, E>)>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.