pub enum CommandSignal {
Interrupt,
Terminate,
Kill,
Hangup,
Quit,
User1,
User2,
}Expand description
A signal for an interactive command. It reaches the command’s whole process group.
Variants§
Interrupt
SIGINT, what Ctrl-C sends: a REPL abandons the current input and keeps running
Terminate
SIGTERM, a request to exit
Kill
SIGKILL, which cannot be caught
Hangup
SIGHUP
Quit
SIGQUIT
User1
SIGUSR1
User2
SIGUSR2
Implementations§
Source§impl CommandSignal
impl CommandSignal
Trait Implementations§
Source§impl Clone for CommandSignal
impl Clone for CommandSignal
impl Copy for CommandSignal
Source§impl Debug for CommandSignal
impl Debug for CommandSignal
Source§impl<'de> Deserialize<'de> for CommandSignal
impl<'de> Deserialize<'de> for CommandSignal
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 CommandSignal
Source§impl Hash for CommandSignal
impl Hash for CommandSignal
Source§impl PartialEq for CommandSignal
impl PartialEq for CommandSignal
Source§impl Serialize for CommandSignal
impl Serialize for CommandSignal
impl StructuralPartialEq for CommandSignal
Auto Trait Implementations§
impl Forget for CommandSignal
impl Freeze for CommandSignal
impl Move for CommandSignal
impl RefUnwindSafe for CommandSignal
impl Send for CommandSignal
impl Sync for CommandSignal
impl Unpin for CommandSignal
impl UnsafeUnpin for CommandSignal
impl UnwindSafe for CommandSignal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.