pub enum ContextSwitchReason {
SyscallFired {
syscall: Syscall,
},
Fault,
Interrupted,
}
Expand description
ContextSwitchReason
specifies why the process stopped executing and
execution returned to the kernel.
Variants§
SyscallFired
Process called a syscall. Also returns the syscall and relevant values.
Fault
Process triggered the hardfault handler. The implementation should still
save registers in the event that the platform can handle the fault and
allow the app to continue running. For more details on this see
ProcessFault
.
Interrupted
Process was interrupted (e.g. by a hardware event).
Trait Implementations§
Source§impl Clone for ContextSwitchReason
impl Clone for ContextSwitchReason
Source§fn clone(&self) -> ContextSwitchReason
fn clone(&self) -> ContextSwitchReason
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for ContextSwitchReason
impl PartialEq for ContextSwitchReason
impl Copy for ContextSwitchReason
impl StructuralPartialEq for ContextSwitchReason
Auto Trait Implementations§
impl Freeze for ContextSwitchReason
impl RefUnwindSafe for ContextSwitchReason
impl !Send for ContextSwitchReason
impl !Sync for ContextSwitchReason
impl Unpin for ContextSwitchReason
impl UnwindSafe for ContextSwitchReason
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