pub struct WorkPool { /* private fields */ }Expand description
A general purpose work completion pool.
Contains elements of a single-threaded event loop and a thread pool.
Runs in and manages its own threads. Dropping the WorkPool will block
the dropping thread until all submitted and spawned work is complete.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkPool
impl !RefUnwindSafe for WorkPool
impl Send for WorkPool
impl Sync for WorkPool
impl Unpin for WorkPool
impl !UnwindSafe for WorkPool
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more