pub enum SelectionStrategy {
Priority,
Fastest,
Balanced,
CacheAffinity,
FairFastest,
}Expand description
Worker selection strategy determining how workers are chosen for jobs.
Variants§
Priority
Legacy/manual control: prioritize worker.priority first, then break ties using command-aware cache/speed hints.
Fastest
Select worker with highest SpeedScore. Best for performance-critical builds with homogeneous workers.
Balanced
Balance all factors: SpeedScore, load, health, cache affinity. Default for general use across diverse worker pools.
CacheAffinity
Prefer workers with warm caches for the project. Best for incremental builds on large codebases.
FairFastest
Weighted random selection favoring fast workers but ensuring fairness. Prevents hot-spotting when many workers are available.
Trait Implementations§
Source§impl Clone for SelectionStrategy
impl Clone for SelectionStrategy
Source§fn clone(&self) -> SelectionStrategy
fn clone(&self) -> SelectionStrategy
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 moreSource§impl Debug for SelectionStrategy
impl Debug for SelectionStrategy
Source§impl Default for SelectionStrategy
impl Default for SelectionStrategy
Source§fn default() -> SelectionStrategy
fn default() -> SelectionStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SelectionStrategy
impl<'de> Deserialize<'de> for SelectionStrategy
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 Display for SelectionStrategy
impl Display for SelectionStrategy
Source§impl FromStr for SelectionStrategy
impl FromStr for SelectionStrategy
Source§impl PartialEq for SelectionStrategy
impl PartialEq for SelectionStrategy
Source§fn eq(&self, other: &SelectionStrategy) -> bool
fn eq(&self, other: &SelectionStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SelectionStrategy
impl Serialize for SelectionStrategy
impl Copy for SelectionStrategy
impl Eq for SelectionStrategy
impl StructuralPartialEq for SelectionStrategy
Auto Trait Implementations§
impl Freeze for SelectionStrategy
impl RefUnwindSafe for SelectionStrategy
impl Send for SelectionStrategy
impl Sync for SelectionStrategy
impl Unpin for SelectionStrategy
impl UnsafeUnpin for SelectionStrategy
impl UnwindSafe for SelectionStrategy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.