pub enum Executor {
Serial,
FixedSizedWorkerPool(usize),
}Variants§
Implementations§
Source§impl Executor
impl Executor
pub fn is_parallel(&self) -> bool
pub fn num_workers(&self) -> usize
pub fn execute<F, R>(&self, f: F) -> R
pub fn execute_batch<F, R>(&self, f: Vec<F>) -> Vec<R>
pub fn submit<F>(&self, f: F)
pub fn submit_blocking<F>(&self, f: Vec<F>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Executor
impl RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl UnsafeUnpin for Executor
impl UnwindSafe for Executor
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