[][src]Struct asygnal::unix::SignalKind

pub struct SignalKind(_);
This is supported on Unix only.

A specific kind of signal.

Signals that cannot be handled are not listed as constants.

Methods

impl SignalKind[src]

pub const ALARM: Self[src]

This is supported on Unix only.

The SIGALRM signal; sent when a real-time timer expires.

Default behavior: process termination.

pub const CHILD: Self[src]

This is supported on Unix only.

The SIGCHLD signal; sent when the status of a child process changes.

Default behavior: ignored.

pub const HANGUP: Self[src]

This is supported on Unix only.

The SIGHUP signal; sent when the terminal is disconnected.

Default behavior: process termination.

pub const INFO: Self[src]

This is supported on Unix only.

The SIGINFO signal; sent to request a status update from the process.

Not supported on: android, emscripten, linux.

Keyboard shortcut: CTRL + T.

Default behavior: ignored.

pub const INTERRUPT: Self[src]

This is supported on Unix only.

The SIGINT signal; sent to interrupt a program.

Keyboard shortcut: CTRL + C.

Default behavior: process termination.

pub const IO: Self[src]

This is supported on Unix only.

The SIGIO signal; sent when I/O operations are possible on some file descriptor.

Default behavior: ignored.

pub const PIPE: Self[src]

This is supported on Unix only.

The SIGPIPE signal; sent when the process attempts to write to a pipe which has no reader.

Default behavior: process termination.

pub const QUIT: Self[src]

This is supported on Unix only.

The SIGQUIT signal; sent to issue a shutdown of the process, after which the OS will dump the process core.

Keyboard shortcut: CTRL + \.

Default behavior: process termination.

pub const TERMINATE: Self[src]

This is supported on Unix only.

The SIGTERM signal; sent to issue a shutdown of the process.

Default behavior: process termination.

pub const USER_DEFINED_1: Self[src]

This is supported on Unix only.

The SIGUSR1 signal; a user defined signal.

Default behavior: process termination.

pub const USER_DEFINED_2: Self[src]

This is supported on Unix only.

The SIGUSR2 signal; a user defined signal.

Default behavior: process termination.

pub const WINDOW_CHANGE: Self[src]

This is supported on Unix only.

The SIGWINCH signal; sent when the terminal window is resized.

Default behavior: ignored.

pub const unsafe fn from_raw(signal: c_int) -> Self[src]

This is supported on Unix only.

Creates an instance from the raw signal value.

Safety

This library assumes that all signals used are valid. Supplying an unsupported signal number invalidates this assumption.

pub const fn into_raw(self) -> c_int[src]

This is supported on Unix only.

Returns the raw value of this signal.

Trait Implementations

impl Clone for SignalKind[src]

impl Copy for SignalKind[src]

impl Debug for SignalKind[src]

impl Eq for SignalKind[src]

impl Extend<SignalKind> for SignalSetBuilder[src]

impl FromIterator<SignalKind> for SignalSetBuilder[src]

impl Hash for SignalKind[src]

impl Ord for SignalKind[src]

impl PartialEq<SignalKind> for SignalKind[src]

impl PartialOrd<SignalKind> for SignalKind[src]

impl StructuralEq for SignalKind[src]

impl StructuralPartialEq for SignalKind[src]

Auto Trait Implementations

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.