Enum nix::sys::signal::SigevNotify
source · pub enum SigevNotify {
SigevNone,
SigevSignal {
signal: Signal,
si_value: intptr_t,
},
SigevThreadId {
signal: Signal,
thread_id: type_of_thread_id,
si_value: intptr_t,
},
}
Expand description
Specifies the notification method used by a SigEvent
Variants§
SigevNone
No notification will be delivered
SigevSignal
Fields
§
si_value: intptr_t
Will be present in the si_value
field of the libc::siginfo_t
structure of the queued signal.
Notify by delivering a signal to the process.
SigevThreadId
Fields
§
thread_id: type_of_thread_id
LWP ID of the thread to notify
§
si_value: intptr_t
Will be present in the si_value
field of the libc::siginfo_t
structure of the queued signal.
Notify by delivering a signal to a thread.
Trait Implementations§
source§impl Clone for SigevNotify
impl Clone for SigevNotify
source§fn clone(&self) -> SigevNotify
fn clone(&self) -> SigevNotify
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SigevNotify
impl Debug for SigevNotify
source§impl Hash for SigevNotify
impl Hash for SigevNotify
source§impl PartialEq<SigevNotify> for SigevNotify
impl PartialEq<SigevNotify> for SigevNotify
source§fn eq(&self, other: &SigevNotify) -> bool
fn eq(&self, other: &SigevNotify) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.