[−][src]Enum addy::Signal
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
Hangup detected on controlling terminal or death of controlling process
Interrupt from keyboard
Quit from keyboard
Illegal Instruction
Trace/breakpoint trap
Abort signal from abort(3)
Bus error (bad memory access)
Floating-point exception
Kill signal
User-defined signal 1
Invalid memory reference
User-defined signal 2
Broken pipe: write to pipe with no readers
Timer signal from alarm(2)
Termination signal
Stack fault on coprocessor.
Child stopped or terminated
Continue if stopped
Stop process
Stop typed at terminal
Terminal input for background process
Terminal output for background process
Urgent condition on socket (4.2BSD)
CPU time limit exceeded (4.2BSD)
File size limit exceeded (4.2BSD)
Virtual alarm clock (4.2BSD)
Profiling timer expired
Window resize signal (4.3BSD, Sun)
I/O now possible (4.2BSD)
Power failure (System V)
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,