pub struct CpuPoolPlan {
pub num_threads: usize,
pub core_ids: Vec<usize>,
pub coordinator_cpu: Option<usize>,
}Expand description
A sized worker pool: how many workers, which logical CPU each pins to, and the CPU set aside for a coordinator, if any.
Fields§
§num_threads: usizeWorker count. Always equal to core_ids.len().
core_ids: Vec<usize>The logical CPU each worker pins to, in worker order.
coordinator_cpu: Option<usize>The logical CPU donated to the coordinator, or None when no
coordinator was asked for or the pool was too small to donate.
Trait Implementations§
Source§impl Clone for CpuPoolPlan
impl Clone for CpuPoolPlan
Source§fn clone(&self) -> CpuPoolPlan
fn clone(&self) -> CpuPoolPlan
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 CpuPoolPlan
impl Debug for CpuPoolPlan
Source§impl Default for CpuPoolPlan
impl Default for CpuPoolPlan
Source§fn default() -> CpuPoolPlan
fn default() -> CpuPoolPlan
Returns the “default value” for a type. Read more
impl Eq for CpuPoolPlan
Source§impl PartialEq for CpuPoolPlan
impl PartialEq for CpuPoolPlan
impl StructuralPartialEq for CpuPoolPlan
Auto Trait Implementations§
impl Freeze for CpuPoolPlan
impl RefUnwindSafe for CpuPoolPlan
impl Send for CpuPoolPlan
impl Sync for CpuPoolPlan
impl Unpin for CpuPoolPlan
impl UnsafeUnpin for CpuPoolPlan
impl UnwindSafe for CpuPoolPlan
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more