pub enum Sig {
Alrm,
Chld,
Hup,
Int,
Io,
Pipe,
Quit,
Term,
Usr1,
Usr2,
}
Available on Unix only.
Expand description
A Unix signal for triggering graceful shutdown.
Each variant corresponds to a Unix process signal which can be used to
trigger a graceful shutdown. See Shutdown
for details.
(De)serialization
A Sig
variant serializes and deserializes as a lowercase string equal to
the name of the variant: "alrm"
for Sig::Alrm
, "chld"
for
Sig::Chld
, and so on.
Variants§
Alrm
The SIGALRM
Unix signal.
Chld
The SIGCHLD
Unix signal.
Hup
The SIGHUP
Unix signal.
Int
The SIGINT
Unix signal.
Io
The SIGIO
Unix signal.
Pipe
The SIGPIPE
Unix signal.
Quit
The SIGQUIT
Unix signal.
Term
The SIGTERM
Unix signal.
Usr1
The SIGUSR1
Unix signal.
Usr2
The SIGUSR2
Unix signal.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sig
impl<'de> Deserialize<'de> for Sig
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 Copy for Sig
impl Eq for Sig
impl StructuralEq for Sig
impl StructuralPartialEq for Sig
Auto Trait Implementations§
impl RefUnwindSafe for Sig
impl Send for Sig
impl Sync for Sig
impl Unpin for Sig
impl UnwindSafe for Sig
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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.