pub struct ThreadPoolBuilder { /* private fields */ }Implementations§
Source§impl ThreadPoolBuilder
impl ThreadPoolBuilder
pub fn new() -> Self
pub fn num_threads(self, n: usize) -> Self
pub fn work_stealing(self, enable: bool) -> Self
pub fn build(self) -> ThreadPool
Auto Trait Implementations§
impl Freeze for ThreadPoolBuilder
impl RefUnwindSafe for ThreadPoolBuilder
impl Send for ThreadPoolBuilder
impl Sync for ThreadPoolBuilder
impl Unpin for ThreadPoolBuilder
impl UnwindSafe for ThreadPoolBuilder
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