[−][src]Struct asygnal::unix::SignalSetBuilder
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]
Creates a new, empty signal set builder.
#[must_use]
pub const unsafe fn from_raw(signal_set: Opaque) -> Self
[src]
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) -> Opaque
[src]
Returns the raw value of this signal set builder.
#[must_use]
pub fn termination_set(self) -> Self
[src]
The set of signals that result in process termination.
#[must_use]
pub fn alarm(self) -> Self
[src]
The SIGALRM
signal; sent when a real-time timer expires.
Default behavior: process termination.
#[must_use]
pub fn child(self) -> Self
[src]
The SIGCHLD
signal; sent when the status of a child process changes.
Default behavior: ignored.
#[must_use]
pub fn hangup(self) -> Self
[src]
The SIGHUP
signal; sent when the terminal is disconnected.
Default behavior: process termination.
#[must_use]
pub fn info(self) -> Self
[src]
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]
The SIGINT
signal; sent to interrupt a program.
Keyboard shortcut: CTRL
+ C
.
Default behavior: process termination.
#[must_use]
pub fn io(self) -> Self
[src]
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]
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]
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]
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]
The SIGUSR1
signal; a user defined signal.
Default behavior: process termination.
#[must_use]
pub fn user_defined_2(self) -> Self
[src]
The SIGUSR2
signal; a user defined signal.
Default behavior: process termination.
#[must_use]
pub fn window_change(self) -> Self
[src]
The SIGWINCH
signal; sent when the terminal window is resized.
Default behavior: ignored.
#[must_use]
pub fn with(self, signal: SignalKind) -> Self
[src]
Returns self
with signal
added to it.
pub fn insert(&mut self, signal: SignalKind)
[src]
Adds signal
to self
.
Trait Implementations
impl Clone for SignalSetBuilder
[src]
fn clone(&self) -> SignalSetBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SignalSetBuilder
[src]
impl Default for SignalSetBuilder
[src]
impl Extend<SignalKind> for SignalSetBuilder
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = SignalKind>,
[src]
I: IntoIterator<Item = SignalKind>,
impl FromIterator<SignalKind> for SignalSetBuilder
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = SignalKind>,
[src]
I: IntoIterator<Item = SignalKind>,
Auto Trait Implementations
impl RefUnwindSafe for SignalSetBuilder
impl Send for SignalSetBuilder
impl Sync for SignalSetBuilder
impl Unpin for SignalSetBuilder
impl UnwindSafe for SignalSetBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,