Struct FlattenStream

#[must_use = "futures/streams/sinks do nothing unless you `.await` or poll them"]
pub struct FlattenStream<F>
where
    F: Future, { /* private fields */ }

Stream for the flatten_stream method.

Trait Implementations

impl<'__pin, F> Unpin for FlattenStream<F> where PinnedFieldsOf<__Origin<'__pin, F>>: Unpin, F: Future,

impl<F> Debug for FlattenStream<F> where Flatten<F, <F as Future>::Output>: Debug, F: Future,

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<F> FusedStream for FlattenStream<F> where Flatten<F, <F as Future>::Output>: FusedStream, F: Future,

fn is_terminated(&self) -> bool

impl<F> Stream for FlattenStream<F> where Flatten<F, <F as Future>::Output>: Stream, F: Future,

type Item = <Flatten<F, <F as Future>::Output> as Stream>::Item;
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>
fn size_hint(&self) -> (usize, Option<usize>)

impl<_Item, F> Sink<_Item> for FlattenStream<F> where Flatten<F, <F as Future>::Output>: Sink<_Item>, F: Future,

type Error = <Flatten<F, <F as Future>::Output> as Sink<_Item>>::Error;
fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn start_send(self: Pin<&mut Self>, item: _Item) -> Result<(), Self::Error>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Auto Trait Implementations

impl<F> Freeze for FlattenStream<F> where Flatten<F, <F as Future>::Output>: Freeze,

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

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

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

impl<F> UnsafeUnpin for FlattenStream<F> where Flatten<F, <F as Future>::Output>: UnsafeUnpin,

impl<F> UnwindSafe for FlattenStream<F> where Flatten<F, <F as Future>::Output>: UnwindSafe,

Blanket Implementations

impl<S> TryStreamExt for FlattenStream<F> where S: TryStream + ?Sized,

impl<S, T, E> TryStream for FlattenStream<F> where S: Stream<Item = Result<T, E>> + ?Sized,

type Ok = T;
type Error = E;
fn try_poll_next(self: Pin<&mut S>, cx: &mut Context<'_>) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>

impl<T> Any for FlattenStream<F> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for FlattenStream<F> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for FlattenStream<F> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for FlattenStream<F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> StreamExt for FlattenStream<F> where T: Stream + ?Sized,

impl<T, Item> SinkExt<Item> for FlattenStream<F> where T: Sink<Item> + ?Sized,

impl<T, U> Into<U> for FlattenStream<F> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for FlattenStream<F> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for FlattenStream<F> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>