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

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

Auto Trait Implementations

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

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

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

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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