pub struct TuningConfig {
pub profile: Option<TuningProfile>,
pub batch_size: Option<usize>,
pub batch_size_memory_mb: Option<usize>,
pub throttle_ms: Option<u64>,
pub statement_timeout_s: Option<u64>,
pub max_retries: Option<u32>,
pub retry_backoff_ms: Option<u64>,
pub lock_timeout_s: Option<u64>,
pub memory_threshold_mb: Option<usize>,
}Fields§
§profile: Option<TuningProfile>§batch_size: Option<usize>§batch_size_memory_mb: Option<usize>Target memory per batch in MB. Mutually exclusive with batch_size.
throttle_ms: Option<u64>§statement_timeout_s: Option<u64>§max_retries: Option<u32>§retry_backoff_ms: Option<u64>§lock_timeout_s: Option<u64>§memory_threshold_mb: Option<usize>Trait Implementations§
Source§impl Clone for TuningConfig
impl Clone for TuningConfig
Source§fn clone(&self) -> TuningConfig
fn clone(&self) -> TuningConfig
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 TuningConfig
impl Debug for TuningConfig
Source§impl Default for TuningConfig
impl Default for TuningConfig
Source§fn default() -> TuningConfig
fn default() -> TuningConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TuningConfig
impl<'de> Deserialize<'de> for TuningConfig
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 TuningConfig
impl RefUnwindSafe for TuningConfig
impl Send for TuningConfig
impl Sync for TuningConfig
impl Unpin for TuningConfig
impl UnsafeUnpin for TuningConfig
impl UnwindSafe for TuningConfig
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