pub enum Signal {
Hup,
Int,
Ill,
Abrt,
Fpe,
Pipe,
Alrm,
Term,
}Expand description
A UNIX signal that can be received through a Signals channel.
Signals that cannot be caught (SIGKILL), that generate core dumps by
default (SIGQUIT), or that indicate unrecoverable program faults
(SIGSEGV) are intentionally excluded.
Variants§
Hup
SIGHUP — terminal hang-up or controlling process died.
Int
SIGINT — interactive interrupt (typically Ctrl-C).
Ill
SIGILL — illegal CPU instruction.
Abrt
SIGABRT — process abort.
Fpe
SIGFPE — floating-point exception.
Pipe
SIGPIPE — write to a broken pipe.
Alrm
SIGALRM — alarm-clock timer expired.
Term
SIGTERM — polite termination request.
Trait Implementations§
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 UnsafeUnpin 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