#[non_exhaustive]pub enum Signal {
Ill(SigillCode),
Fpe(SigfpeCode),
Segv(SigsegvCode),
Bus(SigbusCode),
Trap(SigtrapCode),
}
Expand description
Signal number plus associated subtype code.
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.
Ill(SigillCode)
Illegal instruction.
Fpe(SigfpeCode)
Floating point exception.
Segv(SigsegvCode)
Segmentation fault.
Bus(SigbusCode)
Bus error.
Trap(SigtrapCode)
Trace/breakpoint trap.
Implementations§
Trait Implementations§
Source§impl Ord for Signal
impl Ord for Signal
Source§impl PartialOrd for Signal
impl PartialOrd for Signal
impl Copy for Signal
impl Eq for Signal
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnwindSafe for Signal
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