pub enum SignalKind {
Interrupt,
Terminate,
Unix(UnixSignalKind),
}
Expand description
The type of signal to listen for.
Variants§
Interrupt
Represents the interrupt signal, which is SIGINT
on Unix and Ctrl-C
on Windows.
Terminate
Represents the terminate signal, which is SIGTERM
on Unix and Ctrl-Close
on Windows.
Unix(UnixSignalKind)
Available on Unix only.
Represents a Unix-specific signal kind, wrapping tokio::signal::unix::SignalKind
.
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 From<SignalKind> for SignalKind
Available on Unix only.
impl From<SignalKind> for SignalKind
Available on Unix only.
Source§fn from(value: UnixSignalKind) -> Self
fn from(value: UnixSignalKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq<SignalKind> for SignalKind
Available on Unix only.
impl PartialEq<SignalKind> for SignalKind
Available on Unix only.
Source§impl PartialEq for SignalKind
impl PartialEq for SignalKind
impl Copy for SignalKind
impl Eq for SignalKind
Auto Trait Implementations§
impl Freeze for SignalKind
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