[][src]Struct futures_ext::CollectTo

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

Stream returned as a result of calling crate::StreamExt::collect_to

Implementations

impl<S: Stream, C> CollectTo<S, C> where
    C: Default + Extend<S::Item>, 
[src]

pub fn new(stream: S) -> CollectTo<S, C>[src]

Create a new instance of CollectTo wrapping the provided stream

Trait Implementations

impl<S, C> Future for CollectTo<S, C> where
    S: Stream,
    C: Default + Extend<S::Item>, 
[src]

type Item = C

The type of value that this future will resolved with if it is successful. Read more

type Error = S::Error

The type of error that this future will resolve with if it fails in a normal fashion. Read more

Auto Trait Implementations

impl<S, C> RefUnwindSafe for CollectTo<S, C> where
    C: RefUnwindSafe,
    S: RefUnwindSafe
[src]

impl<S, C> Send for CollectTo<S, C> where
    C: Send,
    S: Send
[src]

impl<S, C> Sync for CollectTo<S, C> where
    C: Sync,
    S: Sync
[src]

impl<S, C> Unpin for CollectTo<S, C> where
    C: Unpin,
    S: Unpin
[src]

impl<S, C> UnwindSafe for CollectTo<S, C> where
    C: UnwindSafe,
    S: UnwindSafe
[src]

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
[src]

impl<T> FutureExt for T where
    T: Future + ?Sized
[src]

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

impl<F> IntoFuture for F where
    F: Future
[src]

type Future = F

The future that this type can be converted into.

type Item = <F as Future>::Item

The item that the future may resolve with.

type Error = <F as Future>::Error

The error that the future may resolve with.

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.