pub struct DynamicBatchingConfig {
pub min_batch_size: usize,
pub max_batch_size: usize,
pub batch_timeout_ms: u64,
pub enable_adaptive_sizing: bool,
pub target_utilization: f32,
}Expand description
Dynamic batching configuration
Fields§
§min_batch_size: usizeMinimum batch size
max_batch_size: usizeMaximum batch size
batch_timeout_ms: u64Batch formation timeout
enable_adaptive_sizing: boolEnable adaptive batch sizing
target_utilization: f32Target batch utilization
Trait Implementations§
Source§impl Clone for DynamicBatchingConfig
impl Clone for DynamicBatchingConfig
Source§fn clone(&self) -> DynamicBatchingConfig
fn clone(&self) -> DynamicBatchingConfig
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 DynamicBatchingConfig
impl Debug for DynamicBatchingConfig
Source§impl<'de> Deserialize<'de> for DynamicBatchingConfig
impl<'de> Deserialize<'de> for DynamicBatchingConfig
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 DynamicBatchingConfig
impl RefUnwindSafe for DynamicBatchingConfig
impl Send for DynamicBatchingConfig
impl Sync for DynamicBatchingConfig
impl Unpin for DynamicBatchingConfig
impl UnsafeUnpin for DynamicBatchingConfig
impl UnwindSafe for DynamicBatchingConfig
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