Struct actix::fut::StreamFinish [−][src]
pub struct StreamFinish<S: ActorStream + Unpin>(_);
Expand description
A combinator used to convert stream into a future, future resolves when stream completes.
This structure is produced by the ActorStream::finish
method.
Trait Implementations
impl<S: ActorStream> ActorFuture for StreamFinish<S> where
S: ActorStream + Unpin,
Self: Unpin,
impl<S: ActorStream> ActorFuture for StreamFinish<S> where
S: ActorStream + Unpin,
Self: Unpin,
The type of value that this future will resolved with if it is successful. Read more
fn poll(
self: Pin<&mut Self>,
act: &mut S::Actor,
ctx: &mut <S::Actor as Actor>::Context,
task: &mut Context<'_>
) -> Poll<()>
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
Auto Trait Implementations
impl<S> RefUnwindSafe for StreamFinish<S> where
S: RefUnwindSafe,
impl<S> Send for StreamFinish<S> where
S: Send,
impl<S> Sync for StreamFinish<S> where
S: Sync,
impl<S> Unpin for StreamFinish<S>
impl<S> UnwindSafe for StreamFinish<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Future = F
type Future = F
The future that this type can be converted into.
type Output = <F as ActorFuture>::Output
type Output = <F as ActorFuture>::Output
The item that the future may resolve with.
type Actor = <F as ActorFuture>::Actor
type Actor = <F as ActorFuture>::Actor
The actor within which this future runs
Consumes this object and produces a future.