pub struct SequentialPool;Expand description
A single-threaded “pool” for sequential execution.
Trait Implementations§
Source§impl Clone for SequentialPool
impl Clone for SequentialPool
Source§fn clone(&self) -> SequentialPool
fn clone(&self) -> SequentialPool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SequentialPool
impl Debug for SequentialPool
Source§impl Default for SequentialPool
impl Default for SequentialPool
Source§fn default() -> SequentialPool
fn default() -> SequentialPool
Returns the “default value” for a type. Read more
Source§impl ThreadPool for SequentialPool
impl ThreadPool for SequentialPool
Source§fn num_threads(&self) -> usize
fn num_threads(&self) -> usize
Returns the number of threads in the pool.
Source§fn join<A, B, RA, RB>(&self, a: A, b: B) -> (RA, RB)
fn join<A, B, RA, RB>(&self, a: A, b: B) -> (RA, RB)
Joins two closures, executing them potentially in parallel.
impl Copy for SequentialPool
Auto Trait Implementations§
impl Freeze for SequentialPool
impl RefUnwindSafe for SequentialPool
impl Send for SequentialPool
impl Sync for SequentialPool
impl Unpin for SequentialPool
impl UnwindSafe for SequentialPool
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