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

pub enum SigevNotify {
    SigevNone,
    SigevSignal {
        signal: Signal,
        si_value: intptr_t,
    },
    SigevKevent {
        kq: RawFd,
        udata: intptr_t,
    },
    SigevThreadId {
        signal: Signal,
        thread_id: type_of_thread_id,
        si_value: intptr_t,
    },
}

Used to request asynchronous notification of certain events, for example, with POSIX AIO, POSIX message queues, and POSIX timers.

Variants

SigevNone

No notification will be delivered

SigevSignal

The signal given by signal will be delivered to the process. The value in si_value will be present in the si_value field of the siginfo_t structure of the queued signal.

Fields of SigevSignal

signal: Signalsi_value: intptr_t
SigevKevent

A new kevent is posted to the kqueue kq. The kevent's udata field will contain the value in udata.

Fields of SigevKevent

kq: RawFdudata: intptr_t
SigevThreadId

The signal signal is queued to the thread whose LWP ID is given in thread_id. The value stored in si_value will be present in the si_value of the siginfo_t structure of the queued signal.

Fields of SigevThreadId

signal: Signalthread_id: type_of_thread_idsi_value: intptr_t

Trait Implementations

impl Clone for SigevNotify[src]

impl Copy for SigevNotify[src]

impl Eq for SigevNotify[src]

impl PartialEq<SigevNotify> for SigevNotify[src]

impl Debug for SigevNotify[src]

impl Hash for SigevNotify[src]

impl StructuralPartialEq for SigevNotify[src]

impl StructuralEq for SigevNotify[src]

Auto Trait Implementations

impl Send for SigevNotify

impl Sync for SigevNotify

impl Unpin for SigevNotify

impl UnwindSafe for SigevNotify

impl RefUnwindSafe for SigevNotify

Blanket Implementations

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

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

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 = !

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.

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

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

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