pub struct FlatMapStream<Next, Func, St, Meta>where
St: Stream,{ /* private fields */ }Expand description
Push combinator that maps each item to a stream and pushes each element downstream.
When the inner stream yields Poll::Pending, this operator yields as well.
Trait Implementations§
Source§impl<Next, Func, St, In, Meta> Push<In, Meta> for FlatMapStream<Next, Func, St, Meta>
impl<Next, Func, St, In, Meta> Push<In, Meta> for FlatMapStream<Next, Func, 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>, item: In, meta: Meta)
fn start_send(self: Pin<&mut Self>, item: In, meta: Meta)
Send an item into this push pipeline. Read more
impl<'__pin, Next, Func, St, Meta> Unpin for FlatMapStream<Next, Func, St, Meta>
Auto Trait Implementations§
impl<Next, Func, St, Meta> Freeze for FlatMapStream<Next, Func, St, Meta>
impl<Next, Func, St, Meta> RefUnwindSafe for FlatMapStream<Next, Func, St, Meta>where
Next: RefUnwindSafe,
Func: RefUnwindSafe,
St: RefUnwindSafe,
Meta: RefUnwindSafe,
<St as Stream>::Item: RefUnwindSafe,
impl<Next, Func, St, Meta> Send for FlatMapStream<Next, Func, St, Meta>
impl<Next, Func, St, Meta> Sync for FlatMapStream<Next, Func, St, Meta>
impl<Next, Func, St, Meta> UnsafeUnpin for FlatMapStream<Next, Func, St, Meta>where
Next: UnsafeUnpin,
Func: UnsafeUnpin,
St: UnsafeUnpin,
Meta: UnsafeUnpin,
<St as Stream>::Item: UnsafeUnpin,
impl<Next, Func, St, Meta> UnwindSafe for FlatMapStream<Next, Func, St, Meta>where
Next: UnwindSafe,
Func: UnwindSafe,
St: UnwindSafe,
Meta: UnwindSafe,
<St as Stream>::Item: UnwindSafe,
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