#[non_exhaustive]pub enum Signo {
SIGILL,
SIGFPE,
SIGSEGV,
SIGBUS,
SIGTRAP,
}
Expand description
Signal numbers that this crate supports handling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SIGILL
Illegal instruction.
Note that Rust’s abort
intrinsic works by executing an illegal instruction.
Be sure when handling this signal that your hook’s behavior does not conflict
with this intent.
SIGFPE
Floating point exception.
SIGSEGV
Segmentation fault.
SIGBUS
Bus error.
SIGTRAP
Trace/breakpoint trap.
Implementations§
Trait Implementations§
Source§impl Ord for Signo
impl Ord for Signo
Source§impl PartialOrd for Signo
impl PartialOrd for Signo
impl Copy for Signo
impl Eq for Signo
impl StructuralPartialEq for Signo
Auto Trait Implementations§
impl Freeze for Signo
impl RefUnwindSafe for Signo
impl Send for Signo
impl Sync for Signo
impl Unpin for Signo
impl UnwindSafe for Signo
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