pub enum Signal {
CtrlC,
CtrlBreak,
CloseConsole,
CloseWindow,
}
Represents one of several abstracted "signals" available to Windows
processes. A number of these signals may be associated with a single trap
call.
SetConsoleCtrlHandler
-generated CTRL_C_EVENT
. Equivalent to
SIGINT
on Unix. It is typically generated by the user pressing Ctrl+C
in the console. However, the Restart Manager may also trigger this
signal; see the
MSDN
documentation for more details.
SetConsoleCtrlHandler
-generated CTRL_BREAK_EVENT
. Roughly analagous
to SIGQUIT
on Unix. It is generated by the user pressing Ctrl+Break
in the console.
SetConsoleCtrlHandler
-generated CTRL_CLOSE_EVENT
. Roughly analagous
to SIGHUP
on Unix. It is generated by the user closing the console
window.
A WM_CLOSE
Window message. Roughly analagous to SIGTERM
on Unix. It
is generated by sending WM_CLOSE to the top-level windows in the
process, which is done by std::process::Child::kill() and the Windows
command line tool taskkill
, among others.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static