[][src]Struct futures::future::FlattenStream

#[must_use = "streams do nothing unless polled"]
pub struct FlattenStream<F> where
    F: Future,
    <F as Future>::Item: Stream<Error = F::Error>, 
{ /* fields omitted */ }

Future for the flatten_stream combinator, flattening a future-of-a-stream to get just the result of the final stream as a stream.

This is created by the Future::flatten_stream method.

Trait Implementations

impl<F> Debug for FlattenStream<F> where
    F: Future + Debug,
    <F as Future>::Item: Stream<Error = F::Error> + Debug
[src]

impl<F> Stream for FlattenStream<F> where
    F: Future,
    <F as Future>::Item: Stream<Error = F::Error>, 
[src]

type Item = <F::Item as Stream>::Item

The type of item this stream will yield on success.

type Error = <F::Item as Stream>::Error

The type of error this stream may generate.

Auto Trait Implementations

impl<F> RefUnwindSafe for FlattenStream<F> where
    F: RefUnwindSafe,
    <F as Future>::Item: RefUnwindSafe

impl<F> Send for FlattenStream<F> where
    F: Send,
    <F as Future>::Item: Send

impl<F> Sync for FlattenStream<F> where
    F: Sync,
    <F as Future>::Item: Sync

impl<F> Unpin for FlattenStream<F> where
    F: Unpin,
    <F as Future>::Item: Unpin

impl<F> UnwindSafe for FlattenStream<F> where
    F: UnwindSafe,
    <F as Future>::Item: 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<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.