pub struct ForEachReducer<Item, F>(/* private fields */);Trait Implementations§
Source§impl<Item, F> Clone for ForEachReducer<Item, F>where
F: Clone,
impl<Item, F> Clone for ForEachReducer<Item, F>where
F: Clone,
Source§impl<'de, Item, F> Deserialize<'de> for ForEachReducer<Item, F>where
F: Deserialize<'de>,
impl<'de, Item, F> Deserialize<'de> for ForEachReducer<Item, F>where
F: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Item, F> Reducer<Item> for ForEachReducer<Item, F>
impl<Item, F> Reducer<Item> for ForEachReducer<Item, F>
Source§impl<Item, F> ReducerProcessSend<Item> for ForEachReducer<Item, F>
impl<Item, F> ReducerProcessSend<Item> for ForEachReducer<Item, F>
Source§impl<Item, F> ReducerSend<Item> for ForEachReducer<Item, F>
impl<Item, F> ReducerSend<Item> for ForEachReducer<Item, F>
Source§impl<Item, F> Serialize for ForEachReducer<Item, F>where
F: Serialize,
impl<Item, F> Serialize for ForEachReducer<Item, F>where
F: Serialize,
Source§impl<Item, F> Sink<Item> for ForEachReducer<Item, F>
impl<Item, F> Sink<Item> for ForEachReducer<Item, F>
type Done = ()
Source§fn poll_forward(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
stream: Pin<&mut impl Stream<Item = Item>>,
) -> Poll<Self::Done>
fn poll_forward( self: Pin<&mut Self>, cx: &mut Context<'_>, stream: Pin<&mut impl Stream<Item = Item>>, ) -> Poll<Self::Done>
Returns
Poll::Ready when a) it can’t accept any more elements from stream and b) all
accepted elements have been fully processed. By convention, stream yielding None
typically triggers (a).fn send(&mut self, item: Item) -> Send<'_, Self, Item> ⓘwhere
Self: Unpin,
fn send_all<'a, S>(&'a mut self, items: &'a mut S) -> SendAll<'a, Self, S> ⓘ
fn done(&mut self) -> Done<'_, Self, Item> ⓘwhere
Self: Unpin,
impl<'pin, Item, F> Unpin for ForEachReducer<Item, F>where
__ForEachReducer<'pin, Item, F>: Unpin,
impl<Item, F> UnsafeUnpin for ForEachReducer<Item, F>
Auto Trait Implementations§
impl<Item, F> Freeze for ForEachReducer<Item, F>where
F: Freeze,
impl<Item, F> RefUnwindSafe for ForEachReducer<Item, F>where
F: RefUnwindSafe,
impl<Item, F> Send for ForEachReducer<Item, F>where
F: Send,
impl<Item, F> Sync for ForEachReducer<Item, F>where
F: Sync,
impl<Item, F> UnwindSafe for ForEachReducer<Item, F>where
F: 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