pub struct BatchOperationConfig { /* private fields */ }Expand description
Configuration for batch operations
Implementations§
Source§impl BatchOperationConfig
impl BatchOperationConfig
Sourcepub fn with_max_batch_size(self, max_size: usize) -> Self
pub fn with_max_batch_size(self, max_size: usize) -> Self
Set maximum batch size
Sourcepub fn with_concurrent_limit(self, limit: usize) -> Self
pub fn with_concurrent_limit(self, limit: usize) -> Self
Set concurrent limit
Sourcepub fn with_retry_failed(self, retry: bool) -> Self
pub fn with_retry_failed(self, retry: bool) -> Self
Set retry failed requests
Sourcepub fn with_preserve_order(self, preserve: bool) -> Self
pub fn with_preserve_order(self, preserve: bool) -> Self
Set preserve order
Sourcepub fn with_timeout_per_request(self, timeout: Duration) -> Self
pub fn with_timeout_per_request(self, timeout: Duration) -> Self
Set timeout per request
Sourcepub fn with_chunk_size(self, size: usize) -> Self
pub fn with_chunk_size(self, size: usize) -> Self
Set chunk size for large batches
Sourcepub fn max_batch_size(&self) -> usize
pub fn max_batch_size(&self) -> usize
Get maximum batch size
Sourcepub fn concurrent_limit(&self) -> usize
pub fn concurrent_limit(&self) -> usize
Get concurrent limit
Sourcepub fn retry_failed(&self) -> bool
pub fn retry_failed(&self) -> bool
Get retry failed setting
Sourcepub fn preserve_order(&self) -> bool
pub fn preserve_order(&self) -> bool
Get preserve order setting
Sourcepub fn timeout_per_request(&self) -> Option<Duration>
pub fn timeout_per_request(&self) -> Option<Duration>
Get timeout per request
Sourcepub fn chunk_size(&self) -> usize
pub fn chunk_size(&self) -> usize
Get chunk size
Trait Implementations§
Source§impl Clone for BatchOperationConfig
impl Clone for BatchOperationConfig
Source§fn clone(&self) -> BatchOperationConfig
fn clone(&self) -> BatchOperationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatchOperationConfig
impl Debug for BatchOperationConfig
Source§impl Default for BatchOperationConfig
impl Default for BatchOperationConfig
Auto Trait Implementations§
impl Freeze for BatchOperationConfig
impl RefUnwindSafe for BatchOperationConfig
impl Send for BatchOperationConfig
impl Sync for BatchOperationConfig
impl Unpin for BatchOperationConfig
impl UnsafeUnpin for BatchOperationConfig
impl UnwindSafe for BatchOperationConfig
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