pub struct ExecutorBuilder { /* private fields */ }Expand description
Builder for creating executors with custom configuration.
Implementations§
Source§impl ExecutorBuilder
impl ExecutorBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new executor builder with default settings.
§Returns
A new builder instance ready for configuration
Sourcepub fn worker_threads(self, count: usize) -> Self
pub fn worker_threads(self, count: usize) -> Self
Sourcepub fn worker_placement(self, placement: WorkerPlacement) -> Self
pub fn worker_placement(self, placement: WorkerPlacement) -> Self
Sourcepub fn async_threads(self, count: usize) -> Self
pub fn async_threads(self, count: usize) -> Self
Sourcepub fn max_global_queue_size(self, size: usize) -> Self
pub fn max_global_queue_size(self, size: usize) -> Self
Sourcepub fn local_queue_initial_capacity(self, size: usize) -> Self
pub fn local_queue_initial_capacity(self, size: usize) -> Self
Sourcepub fn thread_name_prefix(self, prefix: impl Into<String>) -> Self
pub fn thread_name_prefix(self, prefix: impl Into<String>) -> Self
Sourcepub fn preemption_config(self, config: PreemptionConfig) -> Self
pub fn preemption_config(self, config: PreemptionConfig) -> Self
Sourcepub fn memory_config(self, config: MemoryConfig) -> Self
pub fn memory_config(self, config: MemoryConfig) -> Self
Sourcepub fn cleanup_config(self, config: CleanupConfig) -> Self
pub fn cleanup_config(self, config: CleanupConfig) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutorBuilder
impl RefUnwindSafe for ExecutorBuilder
impl Send for ExecutorBuilder
impl Sync for ExecutorBuilder
impl Unpin for ExecutorBuilder
impl UnsafeUnpin for ExecutorBuilder
impl UnwindSafe for ExecutorBuilder
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