[][src]Enum mio_signals::Signal

pub enum Signal {
    Interrupt,
    Terminate,
    Quit,
}

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.

Trait Implementations

impl BitOr<Signal> for SignalSet[src]

type Output = SignalSet

The resulting type after applying the | operator.

impl BitOr<Signal> for Signal[src]

type Output = SignalSet

The resulting type after applying the | operator.

impl BitOr<SignalSet> 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 From<Signal> for SignalSet[src]

impl Hash for Signal[src]

impl Ord for Signal[src]

impl PartialEq<Signal> for Signal[src]

impl PartialOrd<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.