Enum nix::sys::signal::SigHandler [] [src]

pub enum SigHandler {
    SigDfl,
    SigIgn,
    Handler(extern "C" fn(_: c_int)),
    SigAction(extern "C" fn(_: c_int, _: *mut siginfo_t, _: *mut c_void)),
}

A signal handler.

Variants

Default signal handling.

Request that the signal be ignored.

Use the given signal-catching function, which takes in the signal.

Use the given signal-catching function, which takes in the signal, information about how the signal was generated, and a pointer to the threads ucontext_t.

Trait Implementations

impl Debug for SigHandler
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for SigHandler
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for SigHandler
[src]

impl PartialEq for SigHandler
[src]

[src]

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

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for SigHandler

impl Sync for SigHandler