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>where
S1: Stream,
S2: Stream<Item = ()>,
impl<S1, S2> Stream for BatchWith<S1, S2>where S1: Stream, S2: Stream<Item = ()>,
impl<'__pin, S1: Stream, S2> Unpin for BatchWith<S1, S2>where __Origin<'__pin, S1, S2>: Unpin,
Auto Trait Implementations§
impl<S1, S2> RefUnwindSafe for BatchWith<S1, S2>where S1: RefUnwindSafe, S2: RefUnwindSafe, <S1 as Stream>::Item: RefUnwindSafe,
impl<S1, S2> Send for BatchWith<S1, S2>where S1: Send, S2: Send, <S1 as Stream>::Item: Send,
impl<S1, S2> Sync for BatchWith<S1, S2>where S1: Sync, S2: Sync, <S1 as Stream>::Item: Sync,
impl<S1, S2> UnwindSafe for BatchWith<S1, S2>where S1: UnwindSafe, S2: UnwindSafe, <S1 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<S> StreamExt for Swhere
S: Stream,
impl<S> StreamExt for Swhere S: Stream,
source§fn dedup(self) -> Dedup<Self>where
Self::Item: Clone + PartialEq,
fn dedup(self) -> Dedup<Self>where Self::Item: Clone + PartialEq,
Deduplicate consecutive identical items. Read more
source§fn dedup_by_key<T, F>(self, key_fn: F) -> DedupByKey<Self, T, F>where
T: PartialEq,
F: FnMut(&Self::Item) -> T,
fn dedup_by_key<T, F>(self, key_fn: F) -> DedupByKey<Self, T, F>where T: PartialEq, F: FnMut(&Self::Item) -> T,
Deduplicate consecutive items that the given function produces the same
key for.