pub struct Workers { /* private fields */ }Expand description
Worker thread pool
Trait Implementations§
Source§impl WorkerPool for Workers
impl WorkerPool for Workers
Source§fn current_num_threads(&self) -> usize
fn current_num_threads(&self) -> usize
Get the current number of threads
Source§fn split_depth(&self) -> u32
fn split_depth(&self) -> u32
Get the recursion depth up to which operations are split
Source§fn set_split_depth(&self, depth: Option<u32>)
fn set_split_depth(&self, depth: Option<u32>)
Set the recursion depth up to which operations are split Read more
Source§fn install<RA: Send>(&self, op: impl FnOnce() -> RA + Send) -> RA
fn install<RA: Send>(&self, op: impl FnOnce() -> RA + Send) -> RA
Execute
op within the thread pool Read moreAuto Trait Implementations§
impl !Freeze for Workers
impl !RefUnwindSafe for Workers
impl Send for Workers
impl Sync for Workers
impl Unpin for Workers
impl !UnwindSafe for Workers
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