pub struct ThreadPool { /* private fields */ }
Expand description
Long-lived thread pool containing n threads for job processing.
Requirements: ThreadPool needs to know which threads are available at any given time. A ThreadPool is expected to live for the duration of the engine. Must be sharable b/t threads. The ThreadPool manages all threads within it, the threads may not outlive it.
Implementations§
Trait Implementations§
Source§impl Debug for ThreadPool
impl Debug for ThreadPool
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