pub enum PinStrategy {
Core,
Logical,
Spread,
}Expand description
Pinning strategy for a list of thread handles.
Variants§
Core
Pin each thread to a unique physical core (one thread per core, preferring physical core 0, 1, 2, …).
Logical
Pin each thread to a unique logical processor (SMT thread).
Spread
Spread threads across cores to maximize per-thread cache, mapping each thread to a different L3 / NUMA region when possible.
Trait Implementations§
Source§impl Clone for PinStrategy
impl Clone for PinStrategy
Source§fn clone(&self) -> PinStrategy
fn clone(&self) -> PinStrategy
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 PinStrategy
impl Debug for PinStrategy
Source§impl Hash for PinStrategy
impl Hash for PinStrategy
Source§impl PartialEq for PinStrategy
impl PartialEq for PinStrategy
impl Copy for PinStrategy
impl Eq for PinStrategy
impl StructuralPartialEq for PinStrategy
Auto Trait Implementations§
impl Freeze for PinStrategy
impl RefUnwindSafe for PinStrategy
impl Send for PinStrategy
impl Sync for PinStrategy
impl Unpin for PinStrategy
impl UnsafeUnpin for PinStrategy
impl UnwindSafe for PinStrategy
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