pub struct BatchConfig {
pub batch_size: usize,
pub batch_timeout_ms: u64,
pub max_concurrent_batches: usize,
pub batch_execution_timeout: Duration,
}
Expand description
Configuration for request batching
Fields§
§batch_size: usize
Maximum number of requests per batch
batch_timeout_ms: u64
Maximum time to wait for a batch to fill (milliseconds)
max_concurrent_batches: usize
Maximum number of concurrent batches
batch_execution_timeout: Duration
Maximum time to wait for all requests in a batch to complete
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
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