[][src]Enum mortal::signal::Signal

pub enum Signal {
    Break,
    Continue,
    Interrupt,
    Resize,
    Suspend,
    Quit,
}

Signal received through a terminal device

Variants

Break

Break signal (CTRL_BREAK_EVENT); Windows only

Continue

Continue signal (SIGCONT); Unix only

Interrupt

Interrupt signal (SIGINT on Unix, CTRL_C_EVENT on Windows)

Resize

Terminal window resize (SIGWINCH on Unix, WINDOW_BUFFER_SIZE_EVENT on Windows)

When this signal is received, it will be translated into an Event::Resize(_) value containing the new size of the terminal.

Suspend

Suspend signal (SIGTSTP); Unix only

Quit

Quit signal (SIGQUIT); Unix only

Trait Implementations

impl BitOr<Signal> for Signal[src]

type Output = SignalSet

The resulting type after applying the | operator.

impl Clone for Signal[src]

impl Copy for Signal[src]

impl Debug for Signal[src]

impl Eq for Signal[src]

impl Extend<Signal> for SignalSet[src]

impl From<Signal> for SignalSet[src]

impl FromIterator<Signal> for SignalSet[src]

impl Not for Signal[src]

type Output = SignalSet

The resulting type after applying the ! operator.

impl PartialEq<Signal> for Signal[src]

impl StructuralEq for Signal[src]

impl StructuralPartialEq for Signal[src]

Auto Trait Implementations

impl RefUnwindSafe for Signal

impl Send for Signal

impl Sync for Signal

impl Unpin for Signal

impl UnwindSafe for Signal

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.