Struct nix::sys::signal::SigEvent

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

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

Implementations

impl SigEvent
pub fn new(sigev_notify: SigevNotify) -> SigEvent

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) -> libc::sigevent

Return a copy of the inner structure

Trait Implementations

impl Clone for SigEvent
fn clone(&Self) -> SigEvent
impl Copy for SigEvent
impl Debug for SigEvent
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Eq for SigEvent
impl<'a> From<&'a sigevent> for SigEvent
fn from(sigevent: &libc::sigevent) -> Self
impl Hash for SigEvent
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl PartialEq<SigEvent> for SigEvent
fn eq(&Self, other: &SigEvent) -> bool
fn ne(&Self, other: &SigEvent) -> bool

Auto Trait Implementations

impl !Send for SigEvent
impl !Sync for SigEvent
impl Unpin for SigEvent
impl UnwindSafe for SigEvent

Blanket Implementations

impl<T> Any for T
where
    T: 'static + ?Sized,
fn type_id(&Self) -> TypeId
impl<T> Borrow<T> for T
where
    T: ?Sized,
fn borrow(&Self) -> &T
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T
impl<T> From<T> for T
fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for T
where
    U: From<T>,
fn into(Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl<T> ToOwned for T
where
    T: Clone,
type Owned = T
fn to_owned(&Self) -> T
fn clone_into(&Self, target: &mut T)
impl<T, U> TryFrom<U> for T
where
    U: Into<T>,
type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T
where
    U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>