Enum actix::fut::try_future::MapErr [−][src]
#[must_use = "futures do nothing unless you `.await` or poll them"] pub enum MapErr<Fut, F> { Incomplete { future: Fut, f: F, }, Complete, }
Expand description
Future for the map
method.
Variants
Trait Implementations
impl<U, Fut, A, F> ActorFuture<A> for MapErr<Fut, F> where
Fut: ActorTryFuture<A>,
A: Actor,
F: FnOnce(Fut::Error, &mut A, &mut A::Context) -> U,
[src]
impl<U, Fut, A, F> ActorFuture<A> for MapErr<Fut, F> where
Fut: ActorTryFuture<A>,
A: Actor,
F: FnOnce(Fut::Error, &mut A, &mut A::Context) -> U,
[src]Auto Trait Implementations
impl<Fut, F> RefUnwindSafe for MapErr<Fut, F> where
F: RefUnwindSafe,
Fut: RefUnwindSafe,
impl<Fut, F> UnwindSafe for MapErr<Fut, F> where
F: UnwindSafe,
Fut: UnwindSafe,
Blanket Implementations
Map this future’s result to a different type, returning a new future of the resulting type. Read more
Chain on a computation for when a future finished, passing the result of
the future to the provided closure f
. Read more
Add timeout to futures chain. Read more
Wrap the future in a Box, pinning it. Read more
impl<A, F, T, E> ActorTryFuture<A> for F where
F: ActorFuture<A, Output = Result<T, E>> + ?Sized,
A: Actor,
[src]
impl<A, F, T, E> ActorTryFuture<A> for F where
F: ActorFuture<A, Output = Result<T, E>> + ?Sized,
A: Actor,
[src]Mutably borrows from an owned value. Read more