pub enum ContextSwitchError {
CpuLocal(CpuLocalError),
CurrentContextMismatch,
PreviousContextMismatch,
NextContextAlreadyBound,
StalePreviousBinding,
}Expand description
Failure while preparing or completing an execution-context switch.
Variants§
CpuLocal(CpuLocalError)
CPU-local state could not be validated.
CurrentContextMismatch
The outgoing header is not the context currently selected on this CPU.
PreviousContextMismatch
The switch tail was paired with another previous context.
NextContextAlreadyBound
The next context is already running or is in another binding transition.
StalePreviousBinding
The incoming switch tail attempted to consume an obsolete binding epoch.
Trait Implementations§
Source§impl Clone for ContextSwitchError
impl Clone for ContextSwitchError
Source§fn clone(&self) -> ContextSwitchError
fn clone(&self) -> ContextSwitchError
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 ContextSwitchError
Source§impl Debug for ContextSwitchError
impl Debug for ContextSwitchError
Source§impl Display for ContextSwitchError
impl Display for ContextSwitchError
impl Eq for ContextSwitchError
Source§impl Error for ContextSwitchError
impl Error for ContextSwitchError
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 ContextSwitchError
impl PartialEq for ContextSwitchError
impl StructuralPartialEq for ContextSwitchError
Auto Trait Implementations§
impl Freeze for ContextSwitchError
impl RefUnwindSafe for ContextSwitchError
impl Send for ContextSwitchError
impl Sync for ContextSwitchError
impl Unpin for ContextSwitchError
impl UnsafeUnpin for ContextSwitchError
impl UnwindSafe for ContextSwitchError
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