[][src]Struct actix::fut::Then

#[must_use = "futures do nothing unless polled"]
pub struct Then<A, B, F: 'static> where
    A: ActorFuture,
    B: IntoActorFuture<Actor = A::Actor>, 
{ /* fields omitted */ }

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.

Trait Implementations

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

type Output = B::Output

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

type Actor = A::Actor

The actor within which this future runs

impl<A: Debug, B: Debug, F: Debug + 'static> Debug for Then<A, B, F> where
    A: ActorFuture,
    B: IntoActorFuture<Actor = A::Actor>,
    B::Future: Debug
[src]

impl<'pin, A, B, F: 'static> Unpin for Then<A, B, F> where
    A: ActorFuture,
    B: IntoActorFuture<Actor = A::Actor>,
    __Then<'pin, A, B, F>: Unpin
[src]

Auto Trait Implementations

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

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

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

impl<A, B, F> UnwindSafe for Then<A, B, F> where
    A: UnwindSafe,
    F: UnwindSafe,
    <B as IntoActorFuture>::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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<F> IntoActorFuture for F where
    F: ActorFuture
[src]

type Future = F

The future that this type can be converted into.

type Output = <F as ActorFuture>::Output

The item that the future may resolve with.

type Actor = <F as ActorFuture>::Actor

The actor within which this future runs

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,