pub enum StealingStrategy {
Random,
RoundRobin,
MostLoaded,
LocalityAware,
Adaptive,
}
Expand description
Work-stealing strategy
Variants§
Random
Random victim selection
RoundRobin
Round-robin victim selection
MostLoaded
Target the most loaded worker
LocalityAware
Target based on work locality
Adaptive
Adaptive strategy that learns from history
Trait Implementations§
Source§impl Clone for StealingStrategy
impl Clone for StealingStrategy
Source§fn clone(&self) -> StealingStrategy
fn clone(&self) -> StealingStrategy
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 StealingStrategy
impl Debug for StealingStrategy
Source§impl Default for StealingStrategy
impl Default for StealingStrategy
Source§fn default() -> StealingStrategy
fn default() -> StealingStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for StealingStrategy
impl PartialEq for StealingStrategy
impl Copy for StealingStrategy
impl Eq for StealingStrategy
impl StructuralPartialEq for StealingStrategy
Auto Trait Implementations§
impl Freeze for StealingStrategy
impl RefUnwindSafe for StealingStrategy
impl Send for StealingStrategy
impl Sync for StealingStrategy
impl Unpin for StealingStrategy
impl UnwindSafe for StealingStrategy
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