#[non_exhaustive]pub enum Signal {
Show 36 variants
Hup,
Int,
Quit,
Ill,
Trap,
Abrt,
Emt,
Fpe,
Kill,
Bus,
Segv,
Sys,
Pipe,
Alrm,
Term,
Urg,
Stop,
Tstp,
Cont,
Chld,
Ttin,
Ttou,
Io,
Xcpu,
Xfsz,
Vtalrm,
Prof,
Winch,
Info,
Usr1,
Usr2,
Stkflt,
Pwr,
Thr,
Librt,
Number(i32),
}Expand description
A Unix process signal.
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.
Hup
Int
Quit
Ill
Trap
Abrt
Emt
Fpe
Kill
Bus
Segv
Sys
Pipe
Alrm
Term
Urg
Stop
Tstp
Cont
Chld
Ttin
Ttou
Io
Xcpu
Xfsz
Vtalrm
Prof
Winch
Info
Usr1
Usr2
Stkflt
Pwr
Thr
Librt
Number(i32)
Implementations§
Source§impl Signal
impl Signal
Sourcepub fn is_supported(self, operating_system: OperatingSystem) -> bool
pub fn is_supported(self, operating_system: OperatingSystem) -> bool
Returns whether this signal exists on an operating system.
Trait Implementations§
impl Copy for Signal
Source§impl<'de> Deserialize<'de> for Signal
impl<'de> Deserialize<'de> for Signal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Signal
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more