pub struct ThreadPoolConfig {
pub profile: ThreadPoolProfile,
pub min_threads: usize,
pub max_threads: usize,
pub active_threads: usize,
pub idle_timeout: Duration,
pub affinity: AffinityStrategy,
pub numa_aware: bool,
pub work_stealing: bool,
pub queue_capacity: usize,
pub stacksize: Option<usize>,
}
Expand description
Thread pool configuration
Fields§
§profile: ThreadPoolProfile
Profile for workload optimization
min_threads: usize
Minimum number of threads
max_threads: usize
Maximum number of threads
active_threads: usize
Current number of active threads
idle_timeout: Duration
Thread idle timeout
affinity: AffinityStrategy
Affinity strategy
numa_aware: bool
Enable NUMA awareness
work_stealing: bool
Work stealing enabled
queue_capacity: usize
Queue capacity
stacksize: Option<usize>
Thread stack size
Trait Implementations§
Source§impl Clone for ThreadPoolConfig
impl Clone for ThreadPoolConfig
Source§fn clone(&self) -> ThreadPoolConfig
fn clone(&self) -> ThreadPoolConfig
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 ThreadPoolConfig
impl Debug for ThreadPoolConfig
Source§impl Default for ThreadPoolConfig
impl Default for ThreadPoolConfig
Source§impl PartialEq for ThreadPoolConfig
impl PartialEq for ThreadPoolConfig
impl StructuralPartialEq for ThreadPoolConfig
Auto Trait Implementations§
impl Freeze for ThreadPoolConfig
impl RefUnwindSafe for ThreadPoolConfig
impl Send for ThreadPoolConfig
impl Sync for ThreadPoolConfig
impl Unpin for ThreadPoolConfig
impl UnwindSafe for ThreadPoolConfig
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> 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