pub enum AffinityMode {
RoundRobin,
Packed,
Spread,
}Expand description
CPU affinity mode - how workers are assigned to cores.
Variants§
RoundRobin
Round-robin assignment: worker 0 → core 0, worker 1 → core 1, etc.
Packed
Pack workers on first N cores
Spread
Spread workers across cores with gaps (better for hyper-threading)
Trait Implementations§
Source§impl Clone for AffinityMode
impl Clone for AffinityMode
Source§fn clone(&self) -> AffinityMode
fn clone(&self) -> AffinityMode
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 AffinityMode
impl Debug for AffinityMode
Source§impl PartialEq for AffinityMode
impl PartialEq for AffinityMode
impl Copy for AffinityMode
impl Eq for AffinityMode
impl StructuralPartialEq for AffinityMode
Auto Trait Implementations§
impl Freeze for AffinityMode
impl RefUnwindSafe for AffinityMode
impl Send for AffinityMode
impl Sync for AffinityMode
impl Unpin for AffinityMode
impl UnwindSafe for AffinityMode
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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging