pub struct ExecutorBuilder { /* private fields */ }Expand description
Main executor builder for creating configured instances
Implementations§
Source§impl ExecutorBuilder
impl ExecutorBuilder
Sourcepub fn worker_threads(self, count: usize) -> Self
pub fn worker_threads(self, count: usize) -> Self
Set the number of worker threads
Sourcepub fn async_threads(self, count: usize) -> Self
pub fn async_threads(self, count: usize) -> Self
Set the number of async threads
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