pub struct BatchConfig {
pub max_batch_size: usize,
pub min_batch_size: usize,
pub batch_timeout_ms: u64,
pub max_concurrent_batches: usize,
pub enable_priority_batching: bool,
pub enable_adaptive_sizing: bool,
pub error_handling: ErrorHandlingStrategy,
pub retry_config: RetryConfig,
pub optimization: BatchOptimizationConfig,
}Expand description
Batch processing configuration
Fields§
§max_batch_size: usizeMaximum batch size
min_batch_size: usizeMinimum batch size before processing
batch_timeout_ms: u64Batch timeout in milliseconds
max_concurrent_batches: usizeMaximum concurrent batches
enable_priority_batching: boolEnable priority-based batching
enable_adaptive_sizing: boolEnable adaptive batch sizing
error_handling: ErrorHandlingStrategyError handling strategy
retry_config: RetryConfigRetry configuration
optimization: BatchOptimizationConfigPerformance optimization settings
Trait Implementations§
Source§impl Clone for BatchConfig
impl Clone for BatchConfig
Source§fn clone(&self) -> BatchConfig
fn clone(&self) -> BatchConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 BatchConfig
impl Debug for BatchConfig
Source§impl Default for BatchConfig
impl Default for BatchConfig
Source§impl<'de> Deserialize<'de> for BatchConfig
impl<'de> Deserialize<'de> for BatchConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BatchConfig
impl RefUnwindSafe for BatchConfig
impl Send for BatchConfig
impl Sync for BatchConfig
impl Unpin for BatchConfig
impl UnwindSafe for BatchConfig
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