pub struct WorkerPool { /* private fields */ }Expand description
A data type holding Workers.
Trait Implementations§
Source§impl AsWorkerPool<Worker> for WorkerPool
impl AsWorkerPool<Worker> for WorkerPool
Source§fn with_all_cpus() -> Self
fn with_all_cpus() -> Self
Creates worker pool with workers as many as number of available logical
cpus. Read more
Source§impl Debug for WorkerPool
impl Debug for WorkerPool
Source§impl Default for WorkerPool
impl Default for WorkerPool
Source§impl From<WorkerPool> for Vec<Worker>
impl From<WorkerPool> for Vec<Worker>
Source§fn from(value: WorkerPool) -> Self
fn from(value: WorkerPool) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WorkerPool
impl !RefUnwindSafe for WorkerPool
impl Send for WorkerPool
impl Sync for WorkerPool
impl Unpin for WorkerPool
impl !UnwindSafe for WorkerPool
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