pub enum WorkloadStrategy {
PreferQuality,
PreferSpeed,
}
Expand description
Defines execution hint about preferred strategy
Variants§
Trait Implementations§
Source§impl Clone for WorkloadStrategy
impl Clone for WorkloadStrategy
Source§fn clone(&self) -> WorkloadStrategy
fn clone(&self) -> WorkloadStrategy
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 WorkloadStrategy
impl Debug for WorkloadStrategy
Source§impl Default for WorkloadStrategy
impl Default for WorkloadStrategy
Source§fn default() -> WorkloadStrategy
fn default() -> WorkloadStrategy
Returns the “default value” for a type. Read more
Source§impl Ord for WorkloadStrategy
impl Ord for WorkloadStrategy
Source§fn cmp(&self, other: &WorkloadStrategy) -> Ordering
fn cmp(&self, other: &WorkloadStrategy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WorkloadStrategy
impl PartialEq for WorkloadStrategy
Source§impl PartialOrd for WorkloadStrategy
impl PartialOrd for WorkloadStrategy
impl Copy for WorkloadStrategy
impl Eq for WorkloadStrategy
impl StructuralPartialEq for WorkloadStrategy
Auto Trait Implementations§
impl Freeze for WorkloadStrategy
impl RefUnwindSafe for WorkloadStrategy
impl Send for WorkloadStrategy
impl Sync for WorkloadStrategy
impl Unpin for WorkloadStrategy
impl UnwindSafe for WorkloadStrategy
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