#[non_exhaustive]pub enum CpuBatchStrategy {
Auto,
Sequential,
OuterParallel,
ProviderItems,
WholeBatchVendor,
}Expand description
How the items of one batched operation are executed.
§Examples
use tenferro_cpu::CpuBatchStrategy;
assert_eq!(CpuBatchStrategy::default(), CpuBatchStrategy::Auto);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
Choose a supported route from the thresholds and the provider.
Sequential
Sequential batch, sequential items: no parallelism at all.
OuterParallel
Outer-parallel batch: tenferro lanes, each running items sequentially.
ProviderItems
Sequential batch whose items may use the provider’s own parallelism.
WholeBatchVendor
One vendor batch call for the whole batch, with no tenferro fan-out.
Trait Implementations§
Source§impl Clone for CpuBatchStrategy
impl Clone for CpuBatchStrategy
Source§fn clone(&self) -> CpuBatchStrategy
fn clone(&self) -> CpuBatchStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CpuBatchStrategy
Source§impl Debug for CpuBatchStrategy
impl Debug for CpuBatchStrategy
Source§impl Default for CpuBatchStrategy
impl Default for CpuBatchStrategy
Source§fn default() -> CpuBatchStrategy
fn default() -> CpuBatchStrategy
Returns the “default value” for a type. Read more
impl Eq for CpuBatchStrategy
Source§impl Hash for CpuBatchStrategy
impl Hash for CpuBatchStrategy
Source§impl PartialEq for CpuBatchStrategy
impl PartialEq for CpuBatchStrategy
impl StructuralPartialEq for CpuBatchStrategy
Auto Trait Implementations§
impl Freeze for CpuBatchStrategy
impl RefUnwindSafe for CpuBatchStrategy
impl Send for CpuBatchStrategy
impl Sync for CpuBatchStrategy
impl Unpin for CpuBatchStrategy
impl UnsafeUnpin for CpuBatchStrategy
impl UnwindSafe for CpuBatchStrategy
Blanket Implementations§
impl<T> Boilerplate for T
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
impl<T, U> Imply<T> for U
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