pub enum ExternalCpuDomainRegistryError {
EmptyRegistry,
DuplicateDomainId {
id: CpuDomainId,
},
DuplicatePlacementIdentity {
placement: CpuPlacement,
},
CpuOutsideAllowedSet {
domain: CpuDomainId,
cpu: CpuId,
},
MissingDefaultDomain {
default_domain: CpuDomainId,
},
ExactAllAllowedMismatch {
domain: CpuDomainId,
declared: CpuSet,
allowed: CpuSet,
},
}Expand description
Failure to construct an externally managed CPU-domain registry.
§Examples
use tenferro_cpu::ExternalCpuDomainRegistryError;
let error = ExternalCpuDomainRegistryError::EmptyRegistry;
assert!(error.to_string().contains("at least one"));Variants§
EmptyRegistry
No external domain descriptor was supplied.
DuplicateDomainId
More than one descriptor used the same caller-stable domain ID.
Fields
§
id: CpuDomainIdDuplicate caller-supplied identity.
DuplicatePlacementIdentity
More than one descriptor claimed the same placement identity.
Fields
§
placement: CpuPlacementDuplicate NUMA-node or all-allowed identity.
CpuOutsideAllowedSet
A declared CPU is outside the process-allowed CPU set.
Fields
§
domain: CpuDomainIdDomain containing the invalid CPU declaration.
MissingDefaultDomain
The selected default domain ID was not supplied.
Fields
§
default_domain: CpuDomainIdMissing caller-selected default identity.
ExactAllAllowedMismatch
An exact all-allowed declaration did not equal the process-allowed set.
Trait Implementations§
Source§impl Clone for ExternalCpuDomainRegistryError
impl Clone for ExternalCpuDomainRegistryError
Source§fn clone(&self) -> ExternalCpuDomainRegistryError
fn clone(&self) -> ExternalCpuDomainRegistryError
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 Error for ExternalCpuDomainRegistryError
impl Error for ExternalCpuDomainRegistryError
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 From<ExternalCpuDomainRegistryError> for CpuBackendError
impl From<ExternalCpuDomainRegistryError> for CpuBackendError
Source§fn from(source: ExternalCpuDomainRegistryError) -> Self
fn from(source: ExternalCpuDomainRegistryError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExternalCpuDomainRegistryError
impl PartialEq for ExternalCpuDomainRegistryError
Source§fn eq(&self, other: &ExternalCpuDomainRegistryError) -> bool
fn eq(&self, other: &ExternalCpuDomainRegistryError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExternalCpuDomainRegistryError
impl StructuralPartialEq for ExternalCpuDomainRegistryError
Auto Trait Implementations§
impl Freeze for ExternalCpuDomainRegistryError
impl RefUnwindSafe for ExternalCpuDomainRegistryError
impl Send for ExternalCpuDomainRegistryError
impl Sync for ExternalCpuDomainRegistryError
impl Unpin for ExternalCpuDomainRegistryError
impl UnsafeUnpin for ExternalCpuDomainRegistryError
impl UnwindSafe for ExternalCpuDomainRegistryError
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