pub struct ThreadPoolBuilder();Implementations§
Source§impl ThreadPoolBuilder
impl ThreadPoolBuilder
pub fn new() -> ThreadPoolBuilder
pub fn build(self) -> Result<ThreadPool, Infallible>
pub fn num_threads(self, _num_threads: usize) -> ThreadPoolBuilder
Trait Implementations§
Source§impl Default for ThreadPoolBuilder
impl Default for ThreadPoolBuilder
Source§fn default() -> ThreadPoolBuilder
fn default() -> ThreadPoolBuilder
Returns the “default value” for a type. Read more
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