pub struct BatchOptions {
pub chunk_size: Option<usize>,
pub fail_fast: bool,
pub progress_callback: Option<Box<dyn Fn(usize, usize) + Send + Sync>>,
}Expand description
Options for batch processing
Fields§
§chunk_size: Option<usize>Size of chunks for parallel processing
fail_fast: boolWhether to stop on first error (not fully implemented)
progress_callback: Option<Box<dyn Fn(usize, usize) + Send + Sync>>Optional callback for progress updates
Trait Implementations§
Source§impl Debug for BatchOptions
impl Debug for BatchOptions
Auto Trait Implementations§
impl Freeze for BatchOptions
impl !RefUnwindSafe for BatchOptions
impl Send for BatchOptions
impl Sync for BatchOptions
impl Unpin for BatchOptions
impl !UnwindSafe for BatchOptions
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more