Struct actix::fut::Map [−][src]
Future for the map
combinator, changing the type of a future.
This is created by the ActorFuture::map
method
Trait Implementations
impl<U, A, F> ActorFuture for Map<A, F> where
A: ActorFuture,
F: FnOnce(A::Output, &mut A::Actor, &mut <A::Actor as Actor>::Context) -> U,
[src]
A: ActorFuture,
F: FnOnce(A::Output, &mut A::Actor, &mut <A::Actor as Actor>::Context) -> U,
type Output = U
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
fn poll(
self: Pin<&mut Self>,
act: &mut Self::Actor,
ctx: &mut <A::Actor as Actor>::Context,
task: &mut Context<'_>
) -> Poll<Self::Output>
[src]
self: Pin<&mut Self>,
act: &mut Self::Actor,
ctx: &mut <A::Actor as Actor>::Context,
task: &mut Context<'_>
) -> Poll<Self::Output>
fn map<F, U>(self, f: F) -> Map<Self, F> where
F: FnOnce(Self::Output, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
Self: Sized,
[src]
F: FnOnce(Self::Output, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
Self: Sized,
fn then<F, B>(self, f: F) -> Then<Self, B, F> where
F: FnOnce(Self::Output, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> B,
B: IntoActorFuture<Actor = Self::Actor>,
Self: Sized,
[src]
F: FnOnce(Self::Output, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> B,
B: IntoActorFuture<Actor = Self::Actor>,
Self: Sized,
fn timeout(self, timeout: Duration) -> Timeout<Self> where
Self: Sized,
[src]
Self: Sized,
impl<A: Debug, F: Debug> Debug for Map<A, F> where
A: ActorFuture,
[src]
A: ActorFuture,
impl<'__pin, A, F> Unpin for Map<A, F> where
__Origin<'__pin, A, F>: Unpin,
A: ActorFuture,
[src]
__Origin<'__pin, A, F>: Unpin,
A: ActorFuture,
Auto Trait Implementations
impl<A, F> RefUnwindSafe for Map<A, F> where
A: RefUnwindSafe,
F: RefUnwindSafe,
[src]
A: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, F> Send for Map<A, F> where
A: Send,
F: Send,
[src]
A: Send,
F: Send,
impl<A, F> Sync for Map<A, F> where
A: Sync,
F: Sync,
[src]
A: Sync,
F: Sync,
impl<A, F> UnwindSafe for Map<A, F> where
A: UnwindSafe,
F: UnwindSafe,
[src]
A: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> IntoActorFuture for F where
F: ActorFuture,
[src]
F: ActorFuture,
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
pub fn into_future(Self) -> F
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,