Enum elfo::signal::SignalKind
source · pub enum SignalKind {
Show 13 variants
WindowsCtrlC,
UnixRaw(i32),
UnixAlarm,
UnixChild,
UnixHangup,
UnixInterrupt,
UnixIo,
UnixPipe,
UnixQuit,
UnixTerminate,
UnixUser1,
UnixUser2,
UnixWindowChange,
}
Expand description
A kind of signal to listen to.
Unix*
variants are available only on UNIX systems and produce nothing on other systems.Windows*
variants are available only on Windows and produce nothing on other systems.
It helps to avoid writing #[cfg(_)]
everywhere around signals.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WindowsCtrlC
The “ctrl-c” notification.
UnixRaw(i32)
Any valid OS signal.
UnixAlarm
SIGALRM
UnixChild
SIGCHLD
UnixHangup
SIGHUP
UnixInterrupt
SIGINT
UnixIo
SIGIO
UnixPipe
SIGPIPE
UnixQuit
SIGQUIT
UnixTerminate
SIGTERM
UnixUser1
SIGUSR1
UnixUser2
SIGUSR2
UnixWindowChange
SIGWINCH
Trait Implementations§
source§impl Clone for SignalKind
impl Clone for SignalKind
source§fn clone(&self) -> SignalKind
fn clone(&self) -> SignalKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SignalKind
impl Debug for SignalKind
source§impl PartialEq<SignalKind> for SignalKind
impl PartialEq<SignalKind> for SignalKind
source§fn eq(&self, other: &SignalKind) -> bool
fn eq(&self, other: &SignalKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SignalKind
impl Eq for SignalKind
impl StructuralEq for SignalKind
impl StructuralPartialEq for SignalKind
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.