pub struct PerfConfigBuilder { /* private fields */ }Expand description
性能加速配置 builder(v7.3.0)
Implementations§
Source§impl PerfConfigBuilder
impl PerfConfigBuilder
Sourcepub fn simd_row_threshold(self, threshold: usize) -> Self
pub fn simd_row_threshold(self, threshold: usize) -> Self
设置 SIMD 行阈值
Sourcepub fn prewarm_count(self, count: usize) -> Self
pub fn prewarm_count(self, count: usize) -> Self
设置预热连接数
Sourcepub fn plan_cache(self, enabled: bool) -> Self
pub fn plan_cache(self, enabled: bool) -> Self
设置计划缓存启用
Sourcepub fn plan_cache_capacity(self, capacity: usize) -> Self
pub fn plan_cache_capacity(self, capacity: usize) -> Self
设置计划缓存容量
Sourcepub fn plan_cache_ttl_ms(self, ttl_ms: u64) -> Self
pub fn plan_cache_ttl_ms(self, ttl_ms: u64) -> Self
设置计划缓存 TTL(毫秒)
Sourcepub fn build(self) -> Result<PerfConfig, DbError>
pub fn build(self) -> Result<PerfConfig, DbError>
构建配置(校验合法性)
Trait Implementations§
Source§impl Clone for PerfConfigBuilder
impl Clone for PerfConfigBuilder
Source§fn clone(&self) -> PerfConfigBuilder
fn clone(&self) -> PerfConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PerfConfigBuilder
impl Debug for PerfConfigBuilder
Source§impl Default for PerfConfigBuilder
impl Default for PerfConfigBuilder
Source§fn default() -> PerfConfigBuilder
fn default() -> PerfConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PerfConfigBuilder
impl RefUnwindSafe for PerfConfigBuilder
impl Send for PerfConfigBuilder
impl Sync for PerfConfigBuilder
impl Unpin for PerfConfigBuilder
impl UnsafeUnpin for PerfConfigBuilder
impl UnwindSafe for PerfConfigBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more