Enum std::io::signal::Signum[src]

pub enum Signum {
    Break,
    HangUp,
    Interrupt,
    Quit,
    StopTemporarily,
    User1,
    User2,
    WindowSizeChange,
}

Signals that can be sent and received

Variants

Break

Equivalent to SIGBREAK, delivered when the user presses Ctrl-Break.

HangUp

Equivalent to SIGHUP, delivered when the user closes the terminal window. On delivery of HangUp, the program is given approximately 10 seconds to perform any cleanup. After that, Windows will unconditionally terminate it.

Interrupt

Equivalent to SIGINT, delivered when the user presses Ctrl-c.

Quit

Equivalent to SIGQUIT, delivered when the user presses Ctrl-.

StopTemporarily

Equivalent to SIGTSTP, delivered when the user presses Ctrl-z.

User1

Equivalent to SIGUSR1.

User2

Equivalent to SIGUSR2.

WindowSizeChange

Equivalent to SIGWINCH, delivered when the console has been resized. WindowSizeChange may not be delivered in a timely manner; size change will only be detected when the cursor is being moved.

Trait Implementations

Derived Implementations

impl Show for Signum

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<__S: Writer> Hash<__S> for Signum

fn hash(&self, __arg_0: &mut __S)

impl PartialEq for Signum

fn eq(&self, __arg_0: &Signum) -> bool

fn ne(&self, __arg_0: &Signum) -> bool