pub enum Signal {
Hup,
Int,
Term,
Quit,
Panic(PanicSource),
}Expand description
Process and application signals delivered to the runtime.
Variants§
Hup
A Unix hangup signal (SIGHUP).
Int
An interrupt signal (SIGINT on Unix, Ctrl-C on Windows).
Term
A Unix termination signal (SIGTERM).
Quit
A Unix quit signal (SIGQUIT).
Panic(PanicSource)
An application panic or a best-effort fatal-signal notification.
Trait Implementations§
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