pub struct PerformanceConfig {
pub batch_submission: bool,
pub max_batch_size: usize,
pub batch_timeout: Duration,
pub zero_copy: bool,
pub vectored_io: bool,
pub operation_coalescing: bool,
pub coalescing_timeout: Duration,
pub adaptive_polling: bool,
pub poll_timeout: Duration,
}Expand description
Performance optimization configuration.
Fields§
§batch_submission: boolEnable batch submission optimization
max_batch_size: usizeMaximum batch size
batch_timeout: DurationBatch timeout for partial batches
zero_copy: boolEnable zero-copy optimizations
vectored_io: boolEnable vectored I/O optimization
operation_coalescing: boolEnable operation coalescing
coalescing_timeout: DurationCoalescing timeout
adaptive_polling: boolEnable adaptive polling
poll_timeout: DurationPolling timeout
Trait Implementations§
Source§impl Clone for PerformanceConfig
impl Clone for PerformanceConfig
Source§fn clone(&self) -> PerformanceConfig
fn clone(&self) -> PerformanceConfig
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 PerformanceConfig
impl Debug for PerformanceConfig
Auto Trait Implementations§
impl Freeze for PerformanceConfig
impl RefUnwindSafe for PerformanceConfig
impl Send for PerformanceConfig
impl Sync for PerformanceConfig
impl Unpin for PerformanceConfig
impl UnwindSafe for PerformanceConfig
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