pub enum ExternalCpuDomainError {
EmptyPlacementCpuSet,
ZeroExecutorWorkers,
ThreadBudgetExceedsWorkerCount {
thread_budget: usize,
worker_count: usize,
},
}Expand description
Typed failure to construct an externally managed CPU resource domain.
§Examples
use tenferro_cpu::ExternalCpuDomainError;
let error = ExternalCpuDomainError::ThreadBudgetExceedsWorkerCount {
thread_budget: 4,
worker_count: 2,
};
assert!(error.to_string().contains("4"));Variants§
EmptyPlacementCpuSet
The resolved placement contains no logical CPUs.
ZeroExecutorWorkers
The executor reported no workers.
ThreadBudgetExceedsWorkerCount
The requested thread budget is larger than the executor worker count.
Trait Implementations§
Source§impl Clone for ExternalCpuDomainError
impl Clone for ExternalCpuDomainError
Source§fn clone(&self) -> ExternalCpuDomainError
fn clone(&self) -> ExternalCpuDomainError
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 ExternalCpuDomainError
impl Debug for ExternalCpuDomainError
Source§impl Display for ExternalCpuDomainError
impl Display for ExternalCpuDomainError
Source§impl Error for ExternalCpuDomainError
impl Error for ExternalCpuDomainError
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 ExternalCpuDomainError
impl PartialEq for ExternalCpuDomainError
Source§fn eq(&self, other: &ExternalCpuDomainError) -> bool
fn eq(&self, other: &ExternalCpuDomainError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ExternalCpuDomainError
impl Eq for ExternalCpuDomainError
impl StructuralPartialEq for ExternalCpuDomainError
Auto Trait Implementations§
impl Freeze for ExternalCpuDomainError
impl RefUnwindSafe for ExternalCpuDomainError
impl Send for ExternalCpuDomainError
impl Sync for ExternalCpuDomainError
impl Unpin for ExternalCpuDomainError
impl UnsafeUnpin for ExternalCpuDomainError
impl UnwindSafe for ExternalCpuDomainError
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