pub enum CpuAffinityPolicy {
DominantInputBytes,
RequireSingleDomain,
}Expand description
Policy used to select a CPU execution domain from input affinity metadata.
§Examples
use tenferro_cpu::CpuAffinityPolicy;
let policy = CpuAffinityPolicy::DominantInputBytes;
assert_ne!(policy, CpuAffinityPolicy::RequireSingleDomain);Variants§
DominantInputBytes
Select the domain with the largest total of positive logical input bytes.
RequireSingleDomain
Accept zero or one known input domain and reject mixed known domains.
Trait Implementations§
Source§impl Clone for CpuAffinityPolicy
impl Clone for CpuAffinityPolicy
Source§fn clone(&self) -> CpuAffinityPolicy
fn clone(&self) -> CpuAffinityPolicy
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 CpuAffinityPolicy
impl Debug for CpuAffinityPolicy
Source§impl PartialEq for CpuAffinityPolicy
impl PartialEq for CpuAffinityPolicy
Source§fn eq(&self, other: &CpuAffinityPolicy) -> bool
fn eq(&self, other: &CpuAffinityPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CpuAffinityPolicy
impl Eq for CpuAffinityPolicy
impl StructuralPartialEq for CpuAffinityPolicy
Auto Trait Implementations§
impl Freeze for CpuAffinityPolicy
impl RefUnwindSafe for CpuAffinityPolicy
impl Send for CpuAffinityPolicy
impl Sync for CpuAffinityPolicy
impl Unpin for CpuAffinityPolicy
impl UnsafeUnpin for CpuAffinityPolicy
impl UnwindSafe for CpuAffinityPolicy
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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<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