Enum SignalType
pub enum SignalType
A cross-platform way to represent Ctrl-C or program termination signal. Other
signals/events are supported via Other-variant.
Variants
-
Ctrlc Ctrl-C
-
Termination Program termination Maps to
SIGTERMandSIGHUPon *nix,CTRL_CLOSE_EVENTon Windows.-
Other(Signal) Other signal/event using platform-specific data
Trait Implementations
impl Debug for SignalType
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl Freeze for SignalType
impl RefUnwindSafe for SignalType
impl Send for SignalType
impl Sync for SignalType
impl Unpin for SignalType
impl UnsafeUnpin for SignalType
impl UnwindSafe for SignalType
Blanket Implementations
impl<T> Any for SignalType
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SignalType
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SignalType
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for SignalType
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for SignalType
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for SignalType
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for SignalType
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>