#[non_exhaustive]pub enum CpuCeilingError {
AlreadyResolved,
OtherArchitecture(CpuLevel),
Unsupported,
}Expand description
The ceiling on the instruction sets the kernels may use: see
set_cpu_ceiling.
The ceiling on the instruction sets the kernels may use: see
set_cpu_ceiling.
The ceiling on the instruction sets the kernels may use: see
set_cpu_ceiling.
Why set_cpu_ceiling could not set the ceiling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AlreadyResolved
A kernel was already chosen, or a ceiling already set: the tiers in use cannot change for the rest of the process.
OtherArchitecture(CpuLevel)
The level belongs to another architecture than this build’s.
Unsupported
This target has no atomics to hold a ceiling in.
Trait Implementations§
Source§impl Clone for CpuCeilingError
impl Clone for CpuCeilingError
impl Copy for CpuCeilingError
Source§impl Debug for CpuCeilingError
impl Debug for CpuCeilingError
Source§impl Display for CpuCeilingError
impl Display for CpuCeilingError
impl Eq for CpuCeilingError
Source§impl Error for CpuCeilingError
Available on crate feature std only.
impl Error for CpuCeilingError
Available on crate feature
std only.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 CpuCeilingError
impl PartialEq for CpuCeilingError
impl StructuralPartialEq for CpuCeilingError
Auto Trait Implementations§
impl Freeze for CpuCeilingError
impl RefUnwindSafe for CpuCeilingError
impl Send for CpuCeilingError
impl Sync for CpuCeilingError
impl Unpin for CpuCeilingError
impl UnsafeUnpin for CpuCeilingError
impl UnwindSafe for CpuCeilingError
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