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

#[must_use = "futures do nothing unless you `.await` or poll them"]pub enum Map<Fut, Fn> {
    Incomplete {
        future: Fut,
        f: Fn,
    },
    Complete,
}

Future for the map method.

Variants

Incomplete

Fields of Incomplete

future: Futf: Fn
Complete

Trait Implementations

impl<U, Fut, A, Fn> ActorFuture<A> for Map<Fut, Fn> where
    Fut: ActorFuture<A>,
    A: Actor,
    Fn: FnOnce(Fut::Output, &mut A, &mut A::Context) -> U, 
[src]

type Output = U

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

impl<Fut: Debug, Fn: Debug> Debug for Map<Fut, Fn>[src]

impl<'__pin, Fut, Fn> Unpin for Map<Fut, Fn> where
    __Origin<'__pin, Fut, Fn>: Unpin
[src]

Auto Trait Implementations

impl<Fut, Fn> RefUnwindSafe for Map<Fut, Fn> where
    Fn: RefUnwindSafe,
    Fut: RefUnwindSafe

impl<Fut, Fn> Send for Map<Fut, Fn> where
    Fn: Send,
    Fut: Send

impl<Fut, Fn> Sync for Map<Fut, Fn> where
    Fn: Sync,
    Fut: Sync

impl<Fut, Fn> UnwindSafe for Map<Fut, Fn> where
    Fn: UnwindSafe,
    Fut: 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<F, A> IntoActorFuture<A> for F where
    F: ActorFuture<A>,
    A: Actor
[src]

type Future = F

The future that this type can be converted into.

type Output = <F as ActorFuture<A>>::Output

The item that the future may resolve with.

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.