pub struct BlockingPoolConfig {
pub pool_type: PoolType,
pub num_threads: usize,
pub queue_depth: usize,
pub stack_size: usize,
pub name_prefix: String,
}Expand description
Configuration for a blocking pool
Fields§
§pool_type: PoolTypePool type
num_threads: usizeNumber of worker threads
queue_depth: usizeMaximum queue depth before backpressure
stack_size: usizeStack size per thread (default 2MB)
name_prefix: StringThread name prefix
Implementations§
Source§impl BlockingPoolConfig
impl BlockingPoolConfig
Sourcepub fn compaction() -> Self
pub fn compaction() -> Self
Create config for compaction pool
Sourcepub fn checkpoint() -> Self
pub fn checkpoint() -> Self
Create config for checkpoint pool
Trait Implementations§
Source§impl Clone for BlockingPoolConfig
impl Clone for BlockingPoolConfig
Source§fn clone(&self) -> BlockingPoolConfig
fn clone(&self) -> BlockingPoolConfig
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 moreAuto Trait Implementations§
impl Freeze for BlockingPoolConfig
impl RefUnwindSafe for BlockingPoolConfig
impl Send for BlockingPoolConfig
impl Sync for BlockingPoolConfig
impl Unpin for BlockingPoolConfig
impl UnsafeUnpin for BlockingPoolConfig
impl UnwindSafe for BlockingPoolConfig
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request