[][src]Enum addy::Signal

#[repr(i32)]pub enum Signal {
    SIGHUP,
    SIGINT,
    SIGQUIT,
    SIGILL,
    SIGTRAP,
    SIGABRT,
    SIGBUS,
    SIGFPE,
    SIGKILL,
    SIGUSR1,
    SIGSEGV,
    SIGUSR2,
    SIGPIPE,
    SIGALRM,
    SIGTERM,
    SIGSTKFLT,
    SIGCHLD,
    SIGCONT,
    SIGSTOP,
    SIGTSTP,
    SIGTTIN,
    SIGTTOU,
    SIGURG,
    SIGXCPU,
    SIGXFSZ,
    SIGVTALRM,
    SIGPROF,
    SIGWINCH,
    SIGIO,
    SIGPWR,
    SIGSYS,
}

Enum representing the different interrupt signals

Signals Supported

Not all signals are supported on all platforms/architectures. Which signals does your platform support? Run: kill -l to find out!

  • SIGHUP
  • SIGINT
  • SIGQUIT
  • SIGILL
  • SIGTRAP
  • SIGABRT
  • SIGBUS
  • SIGFPE
  • SIGKILL
  • SIGUSR1
  • SIGSEGV
  • SIGUSR2
  • SIGPIPE
  • SIGALRM
  • SIGTERM
  • SIGSTKF
  • SIGCHLD
  • SIGCONT
  • SIGSTOP
  • SIGTSTP
  • SIGTTIN
  • SIGTTOU
  • SIGURG
  • SIGXCPU
  • SIGXFSZ
  • SIGVTAL
  • SIGPROF
  • SIGWINC
  • SIGIO
  • SIGPWR
  • SIGSYS
  • SIGEMT
  • SIGINFO

Variants

SIGHUP

Hangup detected on controlling terminal or death of controlling process

SIGINT

Interrupt from keyboard

SIGQUIT

Quit from keyboard

SIGILL

Illegal Instruction

SIGTRAP

Trace/breakpoint trap

SIGABRT

Abort signal from abort(3)

SIGBUS

Bus error (bad memory access)

SIGFPE

Floating-point exception

SIGKILL

Kill signal

SIGUSR1

User-defined signal 1

SIGSEGV

Invalid memory reference

SIGUSR2

User-defined signal 2

SIGPIPE

Broken pipe: write to pipe with no readers

SIGALRM

Timer signal from alarm(2)

SIGTERM

Termination signal

SIGSTKFLT

Stack fault on coprocessor.

SIGCHLD

Child stopped or terminated

SIGCONT

Continue if stopped

SIGSTOP

Stop process

SIGTSTP

Stop typed at terminal

SIGTTIN

Terminal input for background process

SIGTTOU

Terminal output for background process

SIGURG

Urgent condition on socket (4.2BSD)

SIGXCPU

CPU time limit exceeded (4.2BSD)

SIGXFSZ

File size limit exceeded (4.2BSD)

SIGVTALRM

Virtual alarm clock (4.2BSD)

SIGPROF

Profiling timer expired

SIGWINCH

Window resize signal (4.3BSD, Sun)

SIGIO

I/O now possible (4.2BSD)

SIGPWR

Power failure (System V)

SIGSYS

Bad system call (SVr4)

Methods

impl Signal[src]

pub fn as_str(self) -> &'static str[src]

Returns name of signal.

This function is equivalent to <Signal as AsRef<str>>::as_ref(), with difference that returned string is 'static and not bound to self's lifetime.

Example

use addy::SIGINT;

fn main() {
	println!("My favorite interrupt is: {}", SIGINT);
}

impl Signal[src]

pub fn iterator() -> SignalIterator[src]

Returns an iterator over the different Signals

Trait Implementations

impl AsRef<str> for Signal[src]

impl Clone for Signal[src]

impl Copy for Signal[src]

impl Debug for Signal[src]

impl Display for Signal[src]

impl Eq for Signal[src]

impl Hash for Signal[src]

impl PartialEq<Signal> 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]

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

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.