#[non_exhaustive]pub struct InitialCapacityConfig {
pub worker_count: i64,
pub worker_configuration: Option<WorkerResourceConfig>,
}
Expand description
The initial capacity configuration per worker.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.worker_count: i64
The number of workers in the initial capacity configuration.
worker_configuration: Option<WorkerResourceConfig>
The resource configuration of the initial capacity configuration.
Implementations§
source§impl InitialCapacityConfig
impl InitialCapacityConfig
sourcepub fn worker_count(&self) -> i64
pub fn worker_count(&self) -> i64
The number of workers in the initial capacity configuration.
sourcepub fn worker_configuration(&self) -> Option<&WorkerResourceConfig>
pub fn worker_configuration(&self) -> Option<&WorkerResourceConfig>
The resource configuration of the initial capacity configuration.
source§impl InitialCapacityConfig
impl InitialCapacityConfig
sourcepub fn builder() -> InitialCapacityConfigBuilder
pub fn builder() -> InitialCapacityConfigBuilder
Creates a new builder-style object to manufacture InitialCapacityConfig
.
Trait Implementations§
source§impl Clone for InitialCapacityConfig
impl Clone for InitialCapacityConfig
source§fn clone(&self) -> InitialCapacityConfig
fn clone(&self) -> InitialCapacityConfig
Returns a copy 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 InitialCapacityConfig
impl Debug for InitialCapacityConfig
source§impl PartialEq for InitialCapacityConfig
impl PartialEq for InitialCapacityConfig
source§fn eq(&self, other: &InitialCapacityConfig) -> bool
fn eq(&self, other: &InitialCapacityConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InitialCapacityConfig
Auto Trait Implementations§
impl RefUnwindSafe for InitialCapacityConfig
impl Send for InitialCapacityConfig
impl Sync for InitialCapacityConfig
impl Unpin for InitialCapacityConfig
impl UnwindSafe for InitialCapacityConfig
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> 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>
Creates a shared type from an unshared type.