pub enum ThreadSwitchError {
CpuLocal(CpuLocalError),
CurrentThreadMismatch,
PreviousThreadMismatch,
NextThreadAlreadyBound,
StalePreviousBinding,
}Expand description
Failure while preparing or completing a scheduler thread switch.
Variants§
CpuLocal(CpuLocalError)
CPU-local state could not be validated.
CurrentThreadMismatch
The outgoing header is not the thread currently published on this CPU.
PreviousThreadMismatch
The incoming switch tail was paired with another previous task.
NextThreadAlreadyBound
The next task 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 ThreadSwitchError
impl Clone for ThreadSwitchError
Source§fn clone(&self) -> ThreadSwitchError
fn clone(&self) -> ThreadSwitchError
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 ThreadSwitchError
Source§impl Debug for ThreadSwitchError
impl Debug for ThreadSwitchError
Source§impl Display for ThreadSwitchError
impl Display for ThreadSwitchError
impl Eq for ThreadSwitchError
Source§impl Error for ThreadSwitchError
impl Error for ThreadSwitchError
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 ThreadSwitchError
impl From<CpuLocalError> for ThreadSwitchError
Source§fn from(source: CpuLocalError) -> Self
fn from(source: CpuLocalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ThreadSwitchError
impl PartialEq for ThreadSwitchError
impl StructuralPartialEq for ThreadSwitchError
Auto Trait Implementations§
impl Freeze for ThreadSwitchError
impl RefUnwindSafe for ThreadSwitchError
impl Send for ThreadSwitchError
impl Sync for ThreadSwitchError
impl Unpin for ThreadSwitchError
impl UnsafeUnpin for ThreadSwitchError
impl UnwindSafe for ThreadSwitchError
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