[][src]Struct tokio::prelude::future::FlattenStream

#[must_use = "streams do nothing unless polled"]
pub struct FlattenStream<F> where
    F: Future,
    <F as Future>::Item: Stream,
    <<F as Future>::Item as Stream>::Error == <F as Future>::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,
    <<F as Future>::Item as Stream>::Error == <F as Future>::Error
[src]

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

The type of item this stream will yield on success.

type Error = <<F as Future>::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,
    <F as Future>::Item: Debug,
    <<F as Future>::Item as Stream>::Error == <F as Future>::Error
[src]

Auto Trait Implementations

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

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

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

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

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

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