Enum actix::fut::future::Map [−][src]
Future for the map
method.
Variants
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]
Fut: ActorFuture<A>,
A: Actor,
Fn: FnOnce(Fut::Output, &mut A, &mut A::Context) -> U,
type Output = U
The type of value that this future will resolved with if it is successful. Read more
fn poll(
self: Pin<&mut Self>,
act: &mut A,
ctx: &mut A::Context,
task: &mut Context<'_>
) -> Poll<Self::Output>
[src]
self: Pin<&mut Self>,
act: &mut A,
ctx: &mut A::Context,
task: &mut Context<'_>
) -> Poll<Self::Output>
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]
__Origin<'__pin, Fut, Fn>: Unpin,
Auto Trait Implementations
impl<Fut, Fn> RefUnwindSafe for Map<Fut, Fn> where
Fn: RefUnwindSafe,
Fut: RefUnwindSafe,
Fn: RefUnwindSafe,
Fut: RefUnwindSafe,
impl<Fut, Fn> Send for Map<Fut, Fn> where
Fn: Send,
Fut: Send,
Fn: Send,
Fut: Send,
impl<Fut, Fn> Sync for Map<Fut, Fn> where
Fn: Sync,
Fut: Sync,
Fn: Sync,
Fut: Sync,
impl<Fut, Fn> UnwindSafe for Map<Fut, Fn> where
Fn: UnwindSafe,
Fut: UnwindSafe,
Fn: UnwindSafe,
Fut: UnwindSafe,
Blanket Implementations
impl<F, A> ActorFutureExt<A> for F where
F: ActorFuture<A>,
A: Actor,
[src]
F: ActorFuture<A>,
A: Actor,
fn map<Fn, U>(self, f: Fn) -> Map<Self, Fn> where
Fn: FnOnce(Self::Output, &mut A, &mut A::Context) -> U,
Self: Sized,
[src]
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,
[src]
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,
[src]
Self: Sized,
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, A> IntoActorFuture<A> for F where
F: ActorFuture<A>,
A: Actor,
[src]
F: ActorFuture<A>,
A: Actor,
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.
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>,