Enum mio_signals::Signal [−][src]
pub enum Signal {
Interrupt,
Terminate,
Quit,
User1,
User2,
}
Expand description
Process signal returned by Signals
.
Variants
Interrupt
Interrupt signal.
This signal is received by the process when its controlling terminal wishes to interrupt the process. This signal will for example be send when Ctrl+C is pressed in most terminals.
Corresponds to POSIX signal SIGINT
.
Terminate
Termination request signal.
This signal received when the process is requested to terminate. This
allows the process to perform nice termination, releasing resources and
saving state if appropriate. This signal will be send when using the
kill
command for example.
Corresponds to POSIX signal SIGTERM
.
Quit
Terminal quit signal.
This signal is received when the process is requested to quit and perform a core dump.
Corresponds to POSIX signal SIGQUIT
.
User1
User-defined signal 1.
Corresponds to POSIX signal SIGUSR1
.
User2
User-defined signal 2.
Corresponds to POSIX signal SIGUSR2
.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Signal
impl UnwindSafe for Signal
Blanket Implementations
Mutably borrows from an owned value. Read more