Struct nix::sys::signal::SigEvent [−][src]
Used to request asynchronous notification of the completion of certain events, such as POSIX AIO and timers.
Implementations
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 Clone for SigEvent
[src]
impl Copy for SigEvent
[src]
impl Debug for SigEvent
[src]
impl Eq for SigEvent
[src]
impl<'a> From<&'a sigevent> for SigEvent
[src]
impl Hash for SigEvent
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SigEvent> for SigEvent
[src]
impl StructuralEq for SigEvent
[src]
impl StructuralPartialEq for SigEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for SigEvent
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,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,