[−][src]Struct actix::fut::StreamFold
A future used to collect all the results of a stream into one generic type.
This future is returned by the ActorStream::fold
method.
Trait Implementations
impl<S, F, Fut, T> ActorFuture for StreamFold<S, F, Fut, T> where
S: ActorStream + Unpin,
F: FnMut(T, S::Item, &mut S::Actor, &mut <S::Actor as Actor>::Context) -> Fut,
Fut: IntoActorFuture<Output = T, Actor = S::Actor>,
Fut::Future: ActorFuture + Unpin,
[src]
S: ActorStream + Unpin,
F: FnMut(T, S::Item, &mut S::Actor, &mut <S::Actor as Actor>::Context) -> Fut,
Fut: IntoActorFuture<Output = T, Actor = S::Actor>,
Fut::Future: ActorFuture + Unpin,
type Output = T
The type of value that this future will resolved with if it is successful. Read more
type Actor = S::Actor
The actor within which this future runs
fn poll(
self: Pin<&mut Self>,
act: &mut S::Actor,
ctx: &mut <S::Actor as Actor>::Context,
task: &mut Context<'_>
) -> Poll<T>
[src]
self: Pin<&mut Self>,
act: &mut S::Actor,
ctx: &mut <S::Actor as Actor>::Context,
task: &mut Context<'_>
) -> Poll<T>
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<S: Debug, F: Debug, Fut: Debug, T: Debug> Debug for StreamFold<S, F, Fut, T> where
Fut: IntoActorFuture,
Fut::Future: Debug,
[src]
Fut: IntoActorFuture,
Fut::Future: Debug,
impl<S, F, Fut, T> PinnedDrop for StreamFold<S, F, Fut, T> where
Fut: IntoActorFuture,
[src]
Fut: IntoActorFuture,
impl<'pin, S, F, Fut, T> Unpin for StreamFold<S, F, Fut, T> where
Fut: IntoActorFuture,
__StreamFold<'pin, S, F, Fut, T>: Unpin,
[src]
Fut: IntoActorFuture,
__StreamFold<'pin, S, F, Fut, T>: Unpin,
impl<S, F, Fut, T> UnsafeUnpin for StreamFold<S, F, Fut, T> where
Fut: IntoActorFuture,
[src]
Fut: IntoActorFuture,
Auto Trait Implementations
impl<S, F, Fut, T> RefUnwindSafe for StreamFold<S, F, Fut, T> where
F: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
<Fut as IntoActorFuture>::Future: RefUnwindSafe,
F: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
<Fut as IntoActorFuture>::Future: RefUnwindSafe,
impl<S, F, Fut, T> Send for StreamFold<S, F, Fut, T> where
F: Send,
S: Send,
T: Send,
<Fut as IntoActorFuture>::Future: Send,
F: Send,
S: Send,
T: Send,
<Fut as IntoActorFuture>::Future: Send,
impl<S, F, Fut, T> Sync for StreamFold<S, F, Fut, T> where
F: Sync,
S: Sync,
T: Sync,
<Fut as IntoActorFuture>::Future: Sync,
F: Sync,
S: Sync,
T: Sync,
<Fut as IntoActorFuture>::Future: Sync,
impl<S, F, Fut, T> UnwindSafe for StreamFold<S, F, Fut, T> where
F: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
<Fut as IntoActorFuture>::Future: UnwindSafe,
F: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
<Fut as IntoActorFuture>::Future: 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,
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
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,