pub enum ThreadsPerCoreAllocationPolicy {
Optimal,
Exact {
threads_per_physical_core: NonZeroUsize,
},
}Variants§
Optimal
CCP will try to run the optimal amount of threads per core, trying to utilize all benefits of HT and SMT.
Exact
CCP will try run the exact amount
Fields
§
threads_per_physical_core: NonZeroUsizeTrait Implementations§
Source§impl Clone for ThreadsPerCoreAllocationPolicy
impl Clone for ThreadsPerCoreAllocationPolicy
Source§fn clone(&self) -> ThreadsPerCoreAllocationPolicy
fn clone(&self) -> ThreadsPerCoreAllocationPolicy
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 Default for ThreadsPerCoreAllocationPolicy
impl Default for ThreadsPerCoreAllocationPolicy
Source§fn default() -> ThreadsPerCoreAllocationPolicy
fn default() -> ThreadsPerCoreAllocationPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for ThreadsPerCoreAllocationPolicy
impl PartialEq for ThreadsPerCoreAllocationPolicy
Source§fn eq(&self, other: &ThreadsPerCoreAllocationPolicy) -> bool
fn eq(&self, other: &ThreadsPerCoreAllocationPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ThreadsPerCoreAllocationPolicy
impl Eq for ThreadsPerCoreAllocationPolicy
impl StructuralPartialEq for ThreadsPerCoreAllocationPolicy
Auto Trait Implementations§
impl Freeze for ThreadsPerCoreAllocationPolicy
impl RefUnwindSafe for ThreadsPerCoreAllocationPolicy
impl Send for ThreadsPerCoreAllocationPolicy
impl Sync for ThreadsPerCoreAllocationPolicy
impl Unpin for ThreadsPerCoreAllocationPolicy
impl UnwindSafe for ThreadsPerCoreAllocationPolicy
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