pub struct FlattenStream<Next, St, Meta>where
St: Stream,{ /* private fields */ }Expand description
Push combinator that flattens stream items by polling each stream and pushing elements downstream.
When the inner stream yields Poll::Pending, this operator yields as well.
Trait Implementations§
Source§impl<Next, St, Meta> Push<St, Meta> for FlattenStream<Next, St, Meta>
impl<Next, St, Meta> Push<St, Meta> for FlattenStream<Next, St, Meta>
Source§type CanPend = Yes
type CanPend = Yes
Whether this push can return
PushStep::Pending.Source§fn size_hint(self: Pin<&mut Self>, _hint: (usize, Option<usize>))
fn size_hint(self: Pin<&mut Self>, _hint: (usize, Option<usize>))
Informs this push how many items are about to be sent. Read more
Source§fn poll_ready(
self: Pin<&mut Self>,
ctx: &mut Self::Ctx<'_>,
) -> PushStep<Self::CanPend>
fn poll_ready( self: Pin<&mut Self>, ctx: &mut Self::Ctx<'_>, ) -> PushStep<Self::CanPend>
Check if this push is ready to accept an item.
Source§fn start_send(self: Pin<&mut Self>, stream: St, meta: Meta)
fn start_send(self: Pin<&mut Self>, stream: St, meta: Meta)
Send an item into this push pipeline. Read more
impl<'__pin, Next, St, Meta> Unpin for FlattenStream<Next, St, Meta>
Auto Trait Implementations§
impl<Next, St, Meta> Freeze for FlattenStream<Next, St, Meta>
impl<Next, St, Meta> RefUnwindSafe for FlattenStream<Next, St, Meta>where
Next: RefUnwindSafe,
St: RefUnwindSafe,
Meta: RefUnwindSafe,
<St as Stream>::Item: RefUnwindSafe,
impl<Next, St, Meta> Send for FlattenStream<Next, St, Meta>
impl<Next, St, Meta> Sync for FlattenStream<Next, St, Meta>
impl<Next, St, Meta> UnsafeUnpin for FlattenStream<Next, St, Meta>
impl<Next, St, Meta> UnwindSafe for FlattenStream<Next, St, Meta>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more