pub enum StealStrategy {
Random,
MaxLoad,
LRU,
RoundRobin,
}Expand description
Work-stealing strategy.
Variants§
Random
Random victim selection
MaxLoad
Steal from the worker with the most work
LRU
Steal from the worker with the least recently updated queue
RoundRobin
Round-robin victim selection
Trait Implementations§
Source§impl Clone for StealStrategy
impl Clone for StealStrategy
Source§fn clone(&self) -> StealStrategy
fn clone(&self) -> StealStrategy
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 StealStrategy
impl Debug for StealStrategy
Source§impl<'de> Deserialize<'de> for StealStrategy
impl<'de> Deserialize<'de> for StealStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for StealStrategy
impl Hash for StealStrategy
Source§impl PartialEq for StealStrategy
impl PartialEq for StealStrategy
Source§impl Serialize for StealStrategy
impl Serialize for StealStrategy
impl Copy for StealStrategy
impl Eq for StealStrategy
impl StructuralPartialEq for StealStrategy
Auto Trait Implementations§
impl Freeze for StealStrategy
impl RefUnwindSafe for StealStrategy
impl Send for StealStrategy
impl Sync for StealStrategy
impl Unpin for StealStrategy
impl UnwindSafe for StealStrategy
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