pub struct BulkExecutor { /* private fields */ }Expand description
Executes multiple operations with optional concurrency limits and dry-run support.
Implementations§
Source§impl BulkExecutor
impl BulkExecutor
pub fn new(concurrency: usize, dry_run: bool) -> Self
pub fn from_config(config: BulkConfig) -> Self
pub fn with_progress(self, show_progress: bool) -> Self
pub fn with_fail_fast(self, fail_fast: bool) -> Self
pub async fn run<T, Fut, F>(&self, items: Vec<T>, job: F) -> Result<()>
pub async fn execute_with_results<T, R, Fut, F>( &self, items: Vec<T>, job: F, ) -> Result<BulkResult<R>>
Auto Trait Implementations§
impl Freeze for BulkExecutor
impl RefUnwindSafe for BulkExecutor
impl Send for BulkExecutor
impl Sync for BulkExecutor
impl Unpin for BulkExecutor
impl UnsafeUnpin for BulkExecutor
impl UnwindSafe for BulkExecutor
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