[−][src]Struct asygnal::unix::SignalKind
A specific kind of signal.
Signals that cannot be handled are not listed as constants.
Methods
impl SignalKind
[src]
pub const ALARM: Self
[src]
The SIGALRM
signal; sent when a real-time timer expires.
Default behavior: process termination.
pub const CHILD: Self
[src]
The SIGCHLD
signal; sent when the status of a child process changes.
Default behavior: ignored.
pub const HANGUP: Self
[src]
The SIGHUP
signal; sent when the terminal is disconnected.
Default behavior: process termination.
pub const INFO: 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.
pub const INTERRUPT: Self
[src]
The SIGINT
signal; sent to interrupt a program.
Keyboard shortcut: CTRL
+ C
.
Default behavior: process termination.
pub const IO: Self
[src]
The SIGIO
signal; sent when I/O operations are possible on some file
descriptor.
Default behavior: ignored.
pub const PIPE: Self
[src]
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]
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]
The SIGTERM
signal; sent to issue a shutdown of the process.
Default behavior: process termination.
pub const USER_DEFINED_1: Self
[src]
The SIGUSR1
signal; a user defined signal.
Default behavior: process termination.
pub const USER_DEFINED_2: Self
[src]
The SIGUSR2
signal; a user defined signal.
Default behavior: process termination.
pub const WINDOW_CHANGE: Self
[src]
The SIGWINCH
signal; sent when the terminal window is resized.
Default behavior: ignored.
pub const unsafe fn from_raw(signal: c_int) -> Self
[src]
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]
Returns the raw value of this signal.
Trait Implementations
impl Clone for SignalKind
[src]
fn clone(&self) -> SignalKind
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SignalKind
[src]
impl Debug for SignalKind
[src]
impl Eq for SignalKind
[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>,
impl Hash for SignalKind
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for SignalKind
[src]
fn cmp(&self, other: &SignalKind) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<SignalKind> for SignalKind
[src]
fn eq(&self, other: &SignalKind) -> bool
[src]
fn ne(&self, other: &SignalKind) -> bool
[src]
impl PartialOrd<SignalKind> for SignalKind
[src]
fn partial_cmp(&self, other: &SignalKind) -> Option<Ordering>
[src]
fn lt(&self, other: &SignalKind) -> bool
[src]
fn le(&self, other: &SignalKind) -> bool
[src]
fn gt(&self, other: &SignalKind) -> bool
[src]
fn ge(&self, other: &SignalKind) -> bool
[src]
impl StructuralEq for SignalKind
[src]
impl StructuralPartialEq for SignalKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for SignalKind
impl Send for SignalKind
impl Sync for SignalKind
impl Unpin for SignalKind
impl UnwindSafe for SignalKind
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>,