[][src]Enum wasihost_core::wasi_snapshot_preview1::Signal

#[non_exhaustive]
pub enum Signal {
    None,
    Hup,
    Int,
    Quit,
    Ill,
    Trap,
    Abrt,
    Bus,
    Fpe,
    Kill,
    Usr1,
    Segv,
    Usr2,
    Pipe,
    Alrm,
    Term,
    Chld,
    Cont,
    Stop,
    Tstp,
    Ttin,
    Ttou,
    Urg,
    Xcpu,
    Xfsz,
    Vtalrm,
    Prof,
    Winch,
    Poll,
    Pwr,
    Sys,
}

Signal condition.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None

No signal. Note that POSIX has special semantics for kill(pid, 0), so this value is reserved.

Hup

Hangup. Action: Terminates the process.

Int

Terminate interrupt signal. Action: Terminates the process.

Quit

Terminal quit signal. Action: Terminates the process.

Ill

Illegal instruction. Action: Terminates the process.

Trap

Trace/breakpoint trap. Action: Terminates the process.

Abrt

Process abort signal. Action: Terminates the process.

Bus

Access to an undefined portion of a memory object. Action: Terminates the process.

Fpe

Erroneous arithmetic operation. Action: Terminates the process.

Kill

Kill. Action: Terminates the process.

Usr1

User-defined signal 1. Action: Terminates the process.

Segv

Invalid memory reference. Action: Terminates the process.

Usr2

User-defined signal 2. Action: Terminates the process.

Pipe

Write on a pipe with no one to read it. Action: Ignored.

Alrm

Alarm clock. Action: Terminates the process.

Term

Termination signal. Action: Terminates the process.

Chld

Child process terminated, stopped, or continued. Action: Ignored.

Cont

Continue executing, if stopped. Action: Continues executing, if stopped.

Stop

Stop executing. Action: Stops executing.

Tstp

Terminal stop signal. Action: Stops executing.

Ttin

Background process attempting read. Action: Stops executing.

Ttou

Background process attempting write. Action: Stops executing.

Urg

High bandwidth data is available at a socket. Action: Ignored.

Xcpu

CPU time limit exceeded. Action: Terminates the process.

Xfsz

File size limit exceeded. Action: Terminates the process.

Vtalrm

Virtual timer expired. Action: Terminates the process.

Prof

Profiling timer expired. Action: Terminates the process.

Winch

Window changed. Action: Ignored.

Poll

I/O possible. Action: Terminates the process.

Pwr

Power failure. Action: Terminates the process.

Sys

Bad system call. Action: Terminates the process.

Trait Implementations

impl Clone for Signal[src]

impl Copy for Signal[src]

impl Debug for Signal[src]

impl Eq for Signal[src]

impl Hash for Signal[src]

impl Ord for Signal[src]

impl PartialEq<Signal> for Signal[src]

impl PartialOrd<Signal> for Signal[src]

impl StructuralEq for Signal[src]

impl StructuralPartialEq for Signal[src]

impl WasiValue for Signal[src]

type NativeType = signal

The native WASM type.

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

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

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.