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

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

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

Methods

impl SigEvent
[src]

pub fn new(sigev_notify: SigevNotify) -> SigEvent
[src]

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

pub fn sigevent(&self) -> sigevent
[src]

Trait Implementations

impl<'a> From<&'a sigevent> for SigEvent
[src]

impl Copy for SigEvent
[src]

impl Clone for SigEvent
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for SigEvent
[src]

Auto Trait Implementations

impl !Send for SigEvent

impl !Sync for SigEvent

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

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

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]