Trait actix::fut::future::ActorFutureExt[][src]

pub trait ActorFutureExt<A: Actor>: ActorFuture<A> {
    fn map<Fn, U>(self, f: Fn) -> Map<Self, Fn>
    where
        Fn: FnOnce(Self::Output, &mut A, &mut A::Context) -> U,
        Self: Sized
, { ... }
fn then<Fn, Fut>(self, f: Fn) -> Then<Self, Fut, Fn>
    where
        Fn: FnOnce(Self::Output, &mut A, &mut A::Context) -> Fut,
        Fut: IntoActorFuture<A>,
        Self: Sized
, { ... }
fn timeout(self, timeout: Duration) -> Timeout<Self>
    where
        Self: Sized
, { ... } }

Provided methods

fn map<Fn, U>(self, f: Fn) -> Map<Self, Fn> where
    Fn: FnOnce(Self::Output, &mut A, &mut A::Context) -> U,
    Self: Sized
[src]

Map this future’s result to a different type, returning a new future of the resulting type.

fn then<Fn, Fut>(self, f: Fn) -> Then<Self, Fut, Fn> where
    Fn: FnOnce(Self::Output, &mut A, &mut A::Context) -> Fut,
    Fut: IntoActorFuture<A>,
    Self: Sized
[src]

Chain on a computation for when a future finished, passing the result of the future to the provided closure f.

fn timeout(self, timeout: Duration) -> Timeout<Self> where
    Self: Sized
[src]

Add timeout to futures chain.

Err(()) returned as a timeout error.

Loading content...

Implementors

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

Loading content...