[][src]Struct stream_reduce::Reducer

#[must_use = "futures do nothing unless you `.await` or poll them"]pub struct Reducer<S, T, F, Fut> { /* fields omitted */ }

Future for the reduce method.

Trait Implementations

impl<S, T, F, Fut> Debug for Reducer<S, T, F, Fut> where
    S: Debug,
    T: Debug,
    Fut: Debug
[src]

impl<S, T, F, Fut> Future for Reducer<S, T, F, Fut> where
    S: Stream<Item = T>,
    F: FnMut(T, S::Item) -> Fut,
    Fut: Future<Output = T>, 
[src]

type Output = Option<T>

The type of value produced on completion.

impl<S: Unpin, T, F, Fut: Unpin> Unpin for Reducer<S, T, F, Fut>[src]

Auto Trait Implementations

impl<S, T, F, Fut> RefUnwindSafe for Reducer<S, T, F, Fut> where
    F: RefUnwindSafe,
    Fut: RefUnwindSafe,
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<S, T, F, Fut> Send for Reducer<S, T, F, Fut> where
    F: Send,
    Fut: Send,
    S: Send,
    T: Send

impl<S, T, F, Fut> Sync for Reducer<S, T, F, Fut> where
    F: Sync,
    Fut: Sync,
    S: Sync,
    T: Sync

impl<S, T, F, Fut> UnwindSafe for Reducer<S, T, F, Fut> where
    F: UnwindSafe,
    Fut: UnwindSafe,
    S: UnwindSafe,
    T: 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> FutureExt for T where
    T: Future + ?Sized
[src]

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

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.