pub fn signal(kind: SignalKind) -> Result<Signal>Expand description
Listens to kind from now on.
ยงErrors
When kind is no signal number, is one no handler can take (SIGKILL,
SIGSTOP) or whose handler cannot return (SIGILL, SIGFPE,
SIGSEGV), or when the handler or the wake descriptor cannot be made.