pub struct Dedup<S: Stream> { /* private fields */ }
Expand description
Stream adapter produced by StreamExt::dedup
.
Trait Implementations§
Source§impl<S> Stream for Dedup<S>
impl<S> Stream for Dedup<S>
impl<'__pin, S: Stream> Unpin for Dedup<S>where
PinnedFieldsOf<__Origin<'__pin, S>>: Unpin,
Auto Trait Implementations§
impl<S> Freeze for Dedup<S>
impl<S> RefUnwindSafe for Dedup<S>
impl<S> Send for Dedup<S>
impl<S> Sync for Dedup<S>
impl<S> UnwindSafe for Dedup<S>
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