Enum rushell_deps_linefeed::Signal[][src]

pub enum Signal {
    Break,
    Continue,
    Interrupt,
    Resize,
    Suspend,
    Quit,
}

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

impl BitOr<Signal> for Signal[src]

type Output = SignalSet

The resulting type after applying the | operator.

pub fn bitor(self, rhs: Signal) -> SignalSet[src]

Performs the | operation. Read more

impl Clone for Signal[src]

pub fn clone(&self) -> Signal[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Signal[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl Extend<Signal> for SignalSet[src]

pub fn extend<I>(&mut self, iter: I) where
    I: IntoIterator<Item = Signal>, 
[src]

Extends a collection with the contents of an iterator. Read more

fn extend_one(&mut self, item: A)[src]

🔬 This is a nightly-only experimental API. (extend_one)

Extends a collection with exactly one element.

fn extend_reserve(&mut self, additional: usize)[src]

🔬 This is a nightly-only experimental API. (extend_one)

Reserves capacity in a collection for the given number of additional elements. Read more

impl From<Signal> for SignalSet[src]

pub fn from(sig: Signal) -> SignalSet[src]

Performs the conversion.

impl FromIterator<Signal> for SignalSet[src]

pub fn from_iter<I>(iter: I) -> SignalSet where
    I: IntoIterator<Item = Signal>, 
[src]

Creates a value from an iterator. Read more

impl Not for Signal[src]

type Output = SignalSet

The resulting type after applying the ! operator.

pub fn not(self) -> SignalSet[src]

Performs the unary ! operation. Read more

impl PartialEq<Signal> for Signal[src]

pub fn eq(&self, other: &Signal) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Copy for Signal[src]

impl Eq for Signal[src]

impl StructuralEq for Signal[src]

impl StructuralPartialEq for Signal[src]

Auto Trait Implementations

impl RefUnwindSafe for Signal

impl Send for Signal

impl Sync for Signal

impl Unpin for Signal

impl UnwindSafe for Signal

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.