pub struct ChunkProcessor<T> { /* private fields */ }Expand description
Memory-aware chunk processor
Implementations§
Source§impl<T> ChunkProcessor<T>
impl<T> ChunkProcessor<T>
pub fn new(config: BulkProcessingConfig) -> Self
Sourcepub async fn process_chunks<F, Fut, R>(
&mut self,
processor: F,
) -> Result<Vec<R>>
pub async fn process_chunks<F, Fut, R>( &mut self, processor: F, ) -> Result<Vec<R>>
Process items in chunks with a callback function
Sourcepub fn get_progress(&self) -> BulkProgress
pub fn get_progress(&self) -> BulkProgress
Get current progress
Auto Trait Implementations§
impl<T> Freeze for ChunkProcessor<T>
impl<T> RefUnwindSafe for ChunkProcessor<T>where
T: RefUnwindSafe,
impl<T> Send for ChunkProcessor<T>where
T: Send,
impl<T> Sync for ChunkProcessor<T>where
T: Sync,
impl<T> Unpin for ChunkProcessor<T>where
T: Unpin,
impl<T> UnwindSafe for ChunkProcessor<T>where
T: 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