#[repr(i32)]pub enum ExceptionCode {
Abort = 1_073_741_845,
Fpe = -1_073_741_676,
Illegal = -1_073_741_795,
Segv = -1_073_741_819,
StackOverflow = -1_073_741_571,
Trap = -2_147_483_645,
InvalidParameter = -1_073_741_811,
Purecall = -1_073_741_787,
User = 214_569_453,
HeapCorruption = -1_073_740_940,
}Expand description
Possible exception codes values for the the exception_code field
in the crash context.
This is mainly for testing purposes, and is not exhaustive nor really accurate, as eg. a distinction is made between a divide by zero between integers and floats.
Variants§
Abort = 1_073_741_845
Fpe = -1_073_741_676
Illegal = -1_073_741_795
Segv = -1_073_741_819
StackOverflow = -1_073_741_571
Trap = -2_147_483_645
InvalidParameter = -1_073_741_811
Purecall = -1_073_741_787
User = 214_569_453
HeapCorruption = -1_073_740_940
Trait Implementations§
Source§impl Clone for ExceptionCode
impl Clone for ExceptionCode
Source§fn clone(&self) -> ExceptionCode
fn clone(&self) -> ExceptionCode
Returns a duplicate 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 moreimpl Copy for ExceptionCode
Auto Trait Implementations§
impl Freeze for ExceptionCode
impl RefUnwindSafe for ExceptionCode
impl Send for ExceptionCode
impl Sync for ExceptionCode
impl Unpin for ExceptionCode
impl UnwindSafe for ExceptionCode
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