pub enum UnixSignal {
SIGHUP = 1,
SIGINT = 2,
SIGTERM = 15,
}Expand description
Supported Unix signals.
Variants§
SIGHUP = 1
This signal is sent to a process when its controlling terminal is closed.
In modern systems, this signal usually means that the controlling pseudo
or virtual terminal has been closed. Many daemons will reload their
configuration files and reopen their log files instead of exiting when
receiving this signal. nohup is a command to make a command ignore the
signal.
SIGINT = 2
This signal is sent to a process by its controlling terminal when a user
wishes to interrupt the process. This is typically initiated by pressing
Ctrl-C, but on some systems, the “delete” character or “break” key can
be used.
SIGTERM = 15
This signal is sent to a process to request its termination. Unlike the
SIGKILL signal, it can be caught and interpreted or ignored by the
process. This allows the process to perform nice termination releasing
resources and saving state if appropriate. SIGINT is nearly identical
to SIGTERM.
Trait Implementations§
Source§impl Clone for UnixSignal
impl Clone for UnixSignal
Source§fn clone(&self) -> UnixSignal
fn clone(&self) -> UnixSignal
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UnixSignal
impl Debug for UnixSignal
impl Copy for UnixSignal
Auto Trait Implementations§
impl Freeze for UnixSignal
impl RefUnwindSafe for UnixSignal
impl Send for UnixSignal
impl Sync for UnixSignal
impl Unpin for UnixSignal
impl UnwindSafe for UnixSignal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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