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
Configuration validation rules
Fields§
§min_shard_size: usize
minimum shard size
max_shard_size: usize
maximum shard size
min_thread_count: usize
minimum thread count
max_thread_count: usize
maximum thread count
min_buffer_size: usize
minimum buffer size
max_buffer_size: usize
maximum buffer size
max_memory_limit_mb: usize
maximum memory limit (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