Enum actix::fut::future::Then [−][src]
Future for the then
combinator, chaining computations on the end of
another future regardless of its outcome.
This is created by the Future::then
method.
Variants
Fields of First
fut1: A
data: Option<F>
Trait Implementations
impl<A, B, F, Act> ActorFuture<Act> for Then<A, B, F> where
A: ActorFuture<Act>,
B: ActorFuture<Act>,
F: FnOnce(A::Output, &mut Act, &mut Act::Context) -> B,
Act: Actor,
[src]
A: ActorFuture<Act>,
B: ActorFuture<Act>,
F: FnOnce(A::Output, &mut Act, &mut Act::Context) -> B,
Act: Actor,
type Output = B::Output
The type of value that this future will resolved with if it is successful. Read more
fn poll(
self: Pin<&mut Self>,
act: &mut Act,
ctx: &mut Act::Context,
task: &mut Context<'_>
) -> Poll<B::Output>
[src]
self: Pin<&mut Self>,
act: &mut Act,
ctx: &mut Act::Context,
task: &mut Context<'_>
) -> Poll<B::Output>
impl<A: Debug, B: Debug, F: Debug> Debug for Then<A, B, F>
[src]
impl<'__pin, A, B, F> Unpin for Then<A, B, F> where
__Origin<'__pin, A, B, F>: Unpin,
[src]
__Origin<'__pin, A, B, F>: Unpin,
Auto Trait Implementations
impl<A, B, F> RefUnwindSafe for Then<A, B, F> where
A: RefUnwindSafe,
B: RefUnwindSafe,
F: RefUnwindSafe,
A: RefUnwindSafe,
B: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, B, F> Send for Then<A, B, F> where
A: Send,
B: Send,
F: Send,
A: Send,
B: Send,
F: Send,
impl<A, B, F> Sync for Then<A, B, F> where
A: Sync,
B: Sync,
F: Sync,
A: Sync,
B: Sync,
F: Sync,
impl<A, B, F> UnwindSafe for Then<A, B, F> where
A: UnwindSafe,
B: UnwindSafe,
F: UnwindSafe,
A: UnwindSafe,
B: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<F, A> ActorFutureExt<A> for F where
F: ActorFuture<A>,
A: Actor,
[src]
F: ActorFuture<A>,
A: Actor,
fn map<F, U>(self, f: F) -> Map<Self, F> where
F: FnOnce(Self::Output, &mut A, &mut A::Context) -> U,
Self: Sized,
[src]
F: FnOnce(Self::Output, &mut A, &mut A::Context) -> U,
Self: Sized,
fn then<F, Fut>(self, f: F) -> Then<Self, Fut, F> where
F: FnOnce(Self::Output, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<A>,
Self: Sized,
[src]
F: FnOnce(Self::Output, &mut A, &mut A::Context) -> Fut,
Fut: ActorFuture<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<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>,