pub struct ThreadPool {
pub use_num_threads: usize,
/* private fields */
}
Fields§
§use_num_threads: usize
number of threads to use. Initialized to number of available threads in the threadpool
Implementations§
Source§impl ThreadPool
impl ThreadPool
pub fn with_num_threads(num_threads: usize) -> ThreadPool
pub fn new() -> ThreadPool
Trait Implementations§
Source§impl Default for ThreadPool
impl Default for ThreadPool
Source§fn default() -> ThreadPool
fn default() -> ThreadPool
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThreadPool
impl RefUnwindSafe for ThreadPool
impl Send for ThreadPool
impl Sync for ThreadPool
impl Unpin for ThreadPool
impl UnwindSafe for ThreadPool
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