pub enum Signal {
Break,
Continue,
Interrupt,
Resize,
Suspend,
Quit,
}Expand description
Signal received through a terminal device
Variants§
Break
Break signal (CTRL_BREAK_EVENT); Windows only
Continue
Continue signal (SIGCONT); Unix only
Interrupt
Interrupt signal (SIGINT on Unix, CTRL_C_EVENT on Windows)
Resize
Terminal window resize (SIGWINCH on Unix,
WINDOW_BUFFER_SIZE_EVENT on Windows)
When this signal is received, it will be translated into an
Event::Resize(_) value containing the new size of the terminal.
Suspend
Suspend signal (SIGTSTP); Unix only
Quit
Quit signal (SIGQUIT); Unix only
Trait Implementations§
Source§impl Extend<Signal> for SignalSet
impl Extend<Signal> for SignalSet
Source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = Signal>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = Signal>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<Signal> for SignalSet
impl FromIterator<Signal> for SignalSet
impl Copy for Signal
impl Eq for Signal
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnwindSafe for Signal
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