[][src]Struct actix::fut::StreamFold

#[must_use = "streams do nothing unless polled"]pub struct StreamFold<S, F, Fut, T> where
    Fut: IntoActorFuture
{ /* fields omitted */ }

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]

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

impl<S: Debug, F: Debug, Fut: Debug, T: Debug> Debug for StreamFold<S, F, Fut, T> where
    Fut: IntoActorFuture,
    Fut::Future: Debug
[src]

impl<S, F, Fut, T> PinnedDrop for StreamFold<S, F, Fut, T> where
    Fut: IntoActorFuture
[src]

impl<'pin, S, F, Fut, T> Unpin for StreamFold<S, F, Fut, T> where
    Fut: IntoActorFuture,
    __StreamFold<'pin, S, F, Fut, T>: Unpin
[src]

impl<S, F, Fut, T> UnsafeUnpin for StreamFold<S, F, Fut, T> where
    Fut: IntoActorFuture
[src]

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

impl<S, F, Fut, T> Send for StreamFold<S, F, Fut, T> where
    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

impl<S, F, Fut, T> UnwindSafe for StreamFold<S, F, Fut, T> where
    F: UnwindSafe,
    S: UnwindSafe,
    T: UnwindSafe,
    <Fut as IntoActorFuture>::Future: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<F> IntoActorFuture for F where
    F: ActorFuture
[src]

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,