pub struct ExecutorConfig {
pub worker_threads: usize,
pub async_threads: usize,
pub max_global_queue_size: usize,
pub max_local_queue_size: usize,
pub thread_name_prefix: String,
pub preemption: PreemptionConfig,
pub memory: MemoryConfig,
pub cleanup: CleanupConfig,
}Expand description
Configuration settings for executor behavior and performance characteristics.
This struct encapsulates all tunable parameters that affect executor operation, including thread pool sizes, queue capacities, and various performance optimizations.
Fields§
§worker_threads: usizeNumber of worker threads for parallel tasks
async_threads: usizeNumber of threads dedicated to async tasks
max_global_queue_size: usizeMaximum size of the global task queue
max_local_queue_size: usizeMaximum size of per-thread local queues
thread_name_prefix: StringThread name prefix for worker threads
preemption: PreemptionConfigTask preemption configuration
memory: MemoryConfigMemory management configuration
cleanup: CleanupConfigTask cleanup configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutorConfig
impl RefUnwindSafe for ExecutorConfig
impl Send for ExecutorConfig
impl Sync for ExecutorConfig
impl Unpin for ExecutorConfig
impl UnsafeUnpin for ExecutorConfig
impl UnwindSafe for ExecutorConfig
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