pub enum ExecMode {
Sequential,
Parallel {
threads: Option<usize>,
partitions: Option<usize>,
},
}Expand description
Execution mode for a plan.
Sequentialruns in a single thread.Parallelruns with optional thread count and partition count hints. IfthreadsisSome(n), a global rayon thread pool withnthreads is installed for this process (first one wins; later calls are no-ops). IfpartitionsisNone, the planner’s suggestion (if any) is used, otherwiseRunner::default_partitions.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecMode
impl RefUnwindSafe for ExecMode
impl Send for ExecMode
impl Sync for ExecMode
impl Unpin for ExecMode
impl UnsafeUnpin for ExecMode
impl UnwindSafe for ExecMode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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