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
Source§impl Drop for ThreadPool
impl Drop for ThreadPool
Auto Trait Implementations§
impl !RefUnwindSafe for ThreadPool
impl !UnwindSafe for ThreadPool
impl Freeze for ThreadPool
impl Send for ThreadPool
impl Sync for ThreadPool
impl Unpin for ThreadPool
impl UnsafeUnpin 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