pub enum ReturnReason {
Interrupt,
Syscall,
PageFault(VirtAddr, PageFaultFlags),
Exception(ExceptionInfo),
Unknown,
}Available on crate feature
uspace only.Expand description
A reason as to why the control of the CPU is returned from the user space to the kernel.
Variants§
Interrupt
An interrupt.
Syscall
A system call.
PageFault(VirtAddr, PageFaultFlags)
A page fault.
Exception(ExceptionInfo)
Other kinds of exceptions.
Unknown
Unknown reason.
Trait Implementations§
Source§impl Clone for ReturnReason
impl Clone for ReturnReason
Source§fn clone(&self) -> ReturnReason
fn clone(&self) -> ReturnReason
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 moreSource§impl Debug for ReturnReason
impl Debug for ReturnReason
impl Copy for ReturnReason
Auto Trait Implementations§
impl Freeze for ReturnReason
impl RefUnwindSafe for ReturnReason
impl Send for ReturnReason
impl Sync for ReturnReason
impl Unpin for ReturnReason
impl UnsafeUnpin for ReturnReason
impl UnwindSafe for ReturnReason
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