pub enum CpuLocalError {
AreaNotInstalled,
InvalidAreaBase {
base: usize,
},
AddressOverflow,
AreaIdentityMismatch,
UnsupportedHostLevel {
level: usize,
},
CurrentContextMismatch,
}Expand description
Failure to construct, install, or observe CPU-local state.
Variants§
AreaNotInstalled
No runtime CPU area has been installed in the architecture register.
InvalidAreaBase
A runtime CPU-area address is null or does not meet prefix alignment.
AddressOverflow
Address arithmetic for the fixed CPU-area prefix overflowed.
AreaIdentityMismatch
The immutable area header does not describe its actual address.
UnsupportedHostLevel
The kernel is running at an exception level unsupported by this backend.
CurrentContextMismatch
The selected current-context source does not identify a valid context.
Trait Implementations§
Source§impl Clone for CpuLocalError
impl Clone for CpuLocalError
Source§fn clone(&self) -> CpuLocalError
fn clone(&self) -> CpuLocalError
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 moreimpl Copy for CpuLocalError
Source§impl Debug for CpuLocalError
impl Debug for CpuLocalError
Source§impl Display for CpuLocalError
impl Display for CpuLocalError
impl Eq for CpuLocalError
Source§impl Error for CpuLocalError
impl Error for CpuLocalError
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<CpuLocalError> for ContextSwitchError
impl From<CpuLocalError> for ContextSwitchError
Source§fn from(source: CpuLocalError) -> Self
fn from(source: CpuLocalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CpuLocalError
impl PartialEq for CpuLocalError
impl StructuralPartialEq for CpuLocalError
Auto Trait Implementations§
impl Freeze for CpuLocalError
impl RefUnwindSafe for CpuLocalError
impl Send for CpuLocalError
impl Sync for CpuLocalError
impl Unpin for CpuLocalError
impl UnsafeUnpin for CpuLocalError
impl UnwindSafe for CpuLocalError
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