pub struct BatchWith<S1: Stream, S2> { /* private fields */ }
Expand description
Stream adapter produced by StreamExt::batch_with
.
Trait Implementations§
Source§impl<S1, S2> Stream for BatchWith<S1, S2>
impl<S1, S2> Stream for BatchWith<S1, S2>
impl<'__pin, S1: Stream, S2> Unpin for BatchWith<S1, S2>where
PinnedFieldsOf<__Origin<'__pin, S1, S2>>: Unpin,
Auto Trait Implementations§
impl<S1, S2> Freeze for BatchWith<S1, S2>
impl<S1, S2> RefUnwindSafe for BatchWith<S1, S2>
impl<S1, S2> Send for BatchWith<S1, S2>
impl<S1, S2> Sync for BatchWith<S1, S2>
impl<S1, S2> UnwindSafe for BatchWith<S1, S2>
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<S> StreamExt for Swhere
S: Stream,
impl<S> StreamExt for Swhere
S: Stream,
Source§fn dedup_by_key<T, F>(self, key_fn: F) -> DedupByKey<Self, T, F>
fn dedup_by_key<T, F>(self, key_fn: F) -> DedupByKey<Self, T, F>
Deduplicate consecutive items that the given function produces the same
key for.
Source§fn batch_with<S>(self, batch_done_stream: S) -> BatchWith<Self, S>
fn batch_with<S>(self, batch_done_stream: S) -> BatchWith<Self, S>
Buffer the items from
self
until batch_done_stream
produces a value,
and return all buffered values in one batch. Read more