pub struct ConfigurationValidationRules {
pub min_shard_size: usize,
pub max_shard_size: usize,
pub min_thread_count: usize,
pub max_thread_count: usize,
pub min_buffer_size: usize,
pub max_buffer_size: usize,
pub max_memory_limit_mb: usize,
}
Expand description
配置验证规则
Fields§
§min_shard_size: usize
最小分片大小
max_shard_size: usize
最大分片大小
min_thread_count: usize
最小线程数
max_thread_count: usize
最大线程数
min_buffer_size: usize
最小缓冲区大小
max_buffer_size: usize
最大缓冲区大小
max_memory_limit_mb: usize
最大内存使用限制 (MB)
Trait Implementations§
Source§impl Clone for ConfigurationValidationRules
impl Clone for ConfigurationValidationRules
Source§fn clone(&self) -> ConfigurationValidationRules
fn clone(&self) -> ConfigurationValidationRules
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 ConfigurationValidationRules
impl Debug for ConfigurationValidationRules
Auto Trait Implementations§
impl Freeze for ConfigurationValidationRules
impl RefUnwindSafe for ConfigurationValidationRules
impl Send for ConfigurationValidationRules
impl Sync for ConfigurationValidationRules
impl Unpin for ConfigurationValidationRules
impl UnwindSafe for ConfigurationValidationRules
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
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