pub struct ForEach<Func> { /* private fields */ }Expand description
Terminal push combinator that consumes each item with a closure.
This is the push equivalent of the pull-side ForEach future.
It has no downstream push; items are consumed by func.
Trait Implementations§
Source§impl<Func, Item, Meta> Push<Item, Meta> for ForEach<Func>
impl<Func, Item, Meta> Push<Item, Meta> for ForEach<Func>
Source§type CanPend = Infallible
type CanPend = Infallible
Whether this push can return
PushStep::Pending.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: Item, _meta: Meta)
fn start_send(self: Pin<&mut Self>, item: Item, _meta: Meta)
Send an item into this push pipeline. Read more
impl<'__pin, Func> Unpin for ForEach<Func>where
PinnedFieldsOf<__Origin<'__pin, Func>>: Unpin,
Auto Trait Implementations§
impl<Func> Freeze for ForEach<Func>where
Func: Freeze,
impl<Func> RefUnwindSafe for ForEach<Func>where
Func: RefUnwindSafe,
impl<Func> Send for ForEach<Func>where
Func: Send,
impl<Func> Sync for ForEach<Func>where
Func: Sync,
impl<Func> UnsafeUnpin for ForEach<Func>where
Func: UnsafeUnpin,
impl<Func> UnwindSafe for ForEach<Func>where
Func: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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