[][src]Struct asygnal::unix::SignalSetBuilder

pub struct SignalSetBuilder { /* fields omitted */ }
This is supported on Unix only.

Constructs a SignalSet using the builder pattern.

Signals that cannot be handled are not listed as methods.

Methods

impl SignalSetBuilder[src]

#[must_use] pub fn new() -> Self[src]

This is supported on Unix only.

Creates a new, empty signal set builder.

#[must_use] pub const unsafe fn from_raw(signal_set: sigset_t) -> Self[src]

This is supported on Unix only.

Creates a new builder from the raw signal_set.

Safety

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

#[must_use] pub const fn into_raw(self) -> sigset_t[src]

This is supported on Unix only.

Returns the raw value of this signal set builder.

#[must_use] pub fn termination_set(self) -> Self[src]

This is supported on Unix only.

The set of signals that result in process termination.

#[must_use] pub fn alarm(self) -> Self[src]

This is supported on Unix only.

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

Default behavior: process termination.

#[must_use] pub fn child(self) -> Self[src]

This is supported on Unix only.

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

Default behavior: ignored.

#[must_use] pub fn hangup(self) -> Self[src]

This is supported on Unix only.

The SIGHUP signal; sent when the terminal is disconnected.

Default behavior: process termination.

#[must_use] pub fn info(self) -> 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.

#[must_use] pub fn interrupt(self) -> Self[src]

This is supported on Unix only.

The SIGINT signal; sent to interrupt a program.

Keyboard shortcut: CTRL + C.

Default behavior: process termination.

#[must_use] pub fn io(self) -> 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.

#[must_use] pub fn pipe(self) -> 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.

#[must_use] pub fn quit(self) -> 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.

#[must_use] pub fn terminate(self) -> Self[src]

This is supported on Unix only.

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

Default behavior: process termination.

#[must_use] pub fn user_defined_1(self) -> Self[src]

This is supported on Unix only.

The SIGUSR1 signal; a user defined signal.

Default behavior: process termination.

#[must_use] pub fn user_defined_2(self) -> Self[src]

This is supported on Unix only.

The SIGUSR2 signal; a user defined signal.

Default behavior: process termination.

#[must_use] pub fn window_change(self) -> Self[src]

This is supported on Unix only.

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

Default behavior: ignored.

#[must_use] pub fn with(self, signal: SignalKind) -> Self[src]

This is supported on Unix only.

Returns self with signal added to it.

pub fn insert(&mut self, signal: SignalKind)[src]

This is supported on Unix only.

Adds signal to self.

Trait Implementations

impl Clone for SignalSetBuilder[src]

impl Copy for SignalSetBuilder[src]

impl Default for SignalSetBuilder[src]

impl Extend<SignalKind> for SignalSetBuilder[src]

impl FromIterator<SignalKind> for SignalSetBuilder[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.