Struct nix::sys::signal::SigEvent[][src]

#[repr(C)]
pub struct SigEvent { /* fields omitted */ }
Expand description

Used to request asynchronous notification of the completion of certain events, such as POSIX AIO and timers.

Implementations

Note: this constructor does not allow the user to set the sigev_notify_kevent_flags field. That’s considered ok because on FreeBSD at least those flags don’t do anything useful. That field is part of a union that shares space with the more genuinely useful fields.

Note: This constructor also doesn’t allow the caller to set the sigev_notify_function or sigev_notify_attributes fields, which are required for SIGEV_THREAD. That’s considered ok because on no operating system is SIGEV_THREAD the most efficient way to deliver AIO notification. FreeBSD and DragonFly BSD programs should prefer SIGEV_KEVENT. Linux, Solaris, and portable programs should prefer SIGEV_THREAD_ID or SIGEV_SIGNAL. That field is part of a union that shares space with the more genuinely useful sigev_notify_thread_id

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

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

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.