pub enum CpuPlacementGuarantee {
ExactDeclared,
AdvisoryDeclared,
}Expand description
Strength of a caller’s declared CPU placement for one resource domain.
This declaration does not verify executor worker affinity. Executor capabilities report affinity verification independently.
§Examples
use tenferro_cpu::CpuPlacementGuarantee;
assert_ne!(
CpuPlacementGuarantee::ExactDeclared,
CpuPlacementGuarantee::AdvisoryDeclared,
);Variants§
ExactDeclared
The caller requires execution to remain within the declared CPU set.
AdvisoryDeclared
The declared CPU set is advisory rather than a strict placement bound.
Trait Implementations§
Source§impl Clone for CpuPlacementGuarantee
impl Clone for CpuPlacementGuarantee
Source§fn clone(&self) -> CpuPlacementGuarantee
fn clone(&self) -> CpuPlacementGuarantee
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 CpuPlacementGuarantee
impl Debug for CpuPlacementGuarantee
Source§impl PartialEq for CpuPlacementGuarantee
impl PartialEq for CpuPlacementGuarantee
Source§fn eq(&self, other: &CpuPlacementGuarantee) -> bool
fn eq(&self, other: &CpuPlacementGuarantee) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CpuPlacementGuarantee
impl Eq for CpuPlacementGuarantee
impl StructuralPartialEq for CpuPlacementGuarantee
Auto Trait Implementations§
impl Freeze for CpuPlacementGuarantee
impl RefUnwindSafe for CpuPlacementGuarantee
impl Send for CpuPlacementGuarantee
impl Sync for CpuPlacementGuarantee
impl Unpin for CpuPlacementGuarantee
impl UnsafeUnpin for CpuPlacementGuarantee
impl UnwindSafe for CpuPlacementGuarantee
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