pub enum CpuProviderDomainError {
ThreadCountNotEnforceable {
thread_budget: usize,
control: CpuThreadCountControl,
},
PlacementNotEnforceable {
thread_budget: usize,
placement: CpuPlacementControl,
guarantee: CpuPlacementGuarantee,
},
ParallelModeNotSupported {
mode: ParallelMode,
},
}Expand description
Typed incompatibility between a CPU provider and a selected CPU domain.
§Examples
use tenferro_cpu::{CpuProviderDomainError, CpuThreadCountControl};
let error = CpuProviderDomainError::ThreadCountNotEnforceable {
thread_budget: 4,
control: CpuThreadCountControl::GlobalOrUncontrolled,
};
assert!(error.to_string().contains("thread budget 4"));Variants§
ThreadCountNotEnforceable
The provider cannot enforce the domain’s per-call thread upper bound.
Fields
§
control: CpuThreadCountControlProvider thread-count classification.
PlacementNotEnforceable
The provider cannot enforce the domain’s placement guarantee.
Fields
§
placement: CpuPlacementControlProvider placement classification.
§
guarantee: CpuPlacementGuaranteePlacement guarantee requested by the domain.
ParallelModeNotSupported
The provider cannot honor the engine-selected fan-out mode.
Fields
§
mode: ParallelModeMode selected by the execution engine.
Trait Implementations§
Source§impl Clone for CpuProviderDomainError
impl Clone for CpuProviderDomainError
Source§fn clone(&self) -> CpuProviderDomainError
fn clone(&self) -> CpuProviderDomainError
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 CpuProviderDomainError
impl Debug for CpuProviderDomainError
Source§impl Display for CpuProviderDomainError
impl Display for CpuProviderDomainError
Source§impl Error for CpuProviderDomainError
impl Error for CpuProviderDomainError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for CpuProviderDomainError
impl PartialEq for CpuProviderDomainError
Source§fn eq(&self, other: &CpuProviderDomainError) -> bool
fn eq(&self, other: &CpuProviderDomainError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CpuProviderDomainError
impl Eq for CpuProviderDomainError
impl StructuralPartialEq for CpuProviderDomainError
Auto Trait Implementations§
impl Freeze for CpuProviderDomainError
impl RefUnwindSafe for CpuProviderDomainError
impl Send for CpuProviderDomainError
impl Sync for CpuProviderDomainError
impl Unpin for CpuProviderDomainError
impl UnsafeUnpin for CpuProviderDomainError
impl UnwindSafe for CpuProviderDomainError
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