Enum actix::fut::future::Then[][src]

#[must_use = "futures do nothing unless polled"]pub enum Then<A, B, F> {
    First {
        fut1: A,
        data: Option<F>,
    },
    Second {
        fut2: B,
    },
    Empty,
}

Future for the then combinator, chaining computations on the end of another future regardless of its outcome.

This is created by the Future::then method.

Variants

First

Fields of First

fut1: Adata: Option<F>
Second

Fields of Second

fut2: B
Empty

Trait Implementations

impl<A, B, F, Act> ActorFuture<Act> for Then<A, B, F> where
    A: ActorFuture<Act>,
    B: ActorFuture<Act>,
    F: FnOnce(A::Output, &mut Act, &mut Act::Context) -> B,
    Act: Actor
[src]

type Output = B::Output

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

impl<A: Debug, B: Debug, F: Debug> Debug for Then<A, B, F>[src]

impl<'__pin, A, B, F> Unpin for Then<A, B, F> where
    __Origin<'__pin, A, B, F>: Unpin
[src]

Auto Trait Implementations

impl<A, B, F> RefUnwindSafe for Then<A, B, F> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    F: RefUnwindSafe

impl<A, B, F> Send for Then<A, B, F> where
    A: Send,
    B: Send,
    F: Send

impl<A, B, F> Sync for Then<A, B, F> where
    A: Sync,
    B: Sync,
    F: Sync

impl<A, B, F> UnwindSafe for Then<A, B, F> where
    A: UnwindSafe,
    B: UnwindSafe,
    F: UnwindSafe

Blanket Implementations

impl<F, A> ActorFutureExt<A> for F where
    F: ActorFuture<A>,
    A: Actor
[src]

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, U> Into<U> for T where
    U: From<T>, 
[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.