pub struct Batcher<K, I, O = (), E = String>where
K: 'static + Send + Eq + Hash + Clone,
I: 'static + Send,
O: 'static + Send,
E: 'static + Send + Clone + Display,{ /* private fields */ }Expand description
Groups items to be processed in batches.
Takes inputs (I) grouped by a key (K) and processes multiple together in a batch. An output
(O) is produced for each input.
Errors (E) can be returned from a batch.
Cheap to clone.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K, I, O, E> Freeze for Batcher<K, I, O, E>
impl<K, I, O, E> RefUnwindSafe for Batcher<K, I, O, E>
impl<K, I, O, E> Send for Batcher<K, I, O, E>
impl<K, I, O, E> Sync for Batcher<K, I, O, E>
impl<K, I, O, E> Unpin for Batcher<K, I, O, E>
impl<K, I, O, E> UnwindSafe for Batcher<K, I, O, E>
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