pub enum ExceptionKind {
Debug,
Breakpoint,
IllegalInstruction,
Misaligned,
ArithmeticError,
Other,
}Available on crate feature
uspace only.Expand description
A generalized kind for ExceptionInfo.
Variants§
Debug
Available on x86-64 only.
A debug exception.
Breakpoint
A breakpoint exception.
IllegalInstruction
An illegal instruction exception.
Misaligned
A misaligned access exception.
ArithmeticError
An integer arithmetic exception, i.e. x86 #DE (divide-by-zero or the
INT_MIN / -1 overflow). On x86 this is a real CPU trap that must become
SIGFPE; the other architectures do not trap on integer divide-by-zero,
so they never produce this kind.
Other
Other kinds of exceptions.
Trait Implementations§
Source§impl Clone for ExceptionKind
impl Clone for ExceptionKind
Source§fn clone(&self) -> ExceptionKind
fn clone(&self) -> ExceptionKind
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 ExceptionKind
Source§impl Debug for ExceptionKind
impl Debug for ExceptionKind
impl Eq for ExceptionKind
Source§impl PartialEq for ExceptionKind
impl PartialEq for ExceptionKind
impl StructuralPartialEq for ExceptionKind
Auto Trait Implementations§
impl Freeze for ExceptionKind
impl RefUnwindSafe for ExceptionKind
impl Send for ExceptionKind
impl Sync for ExceptionKind
impl Unpin for ExceptionKind
impl UnsafeUnpin for ExceptionKind
impl UnwindSafe for ExceptionKind
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