pub enum SigevNotify<'fd> {
SigevNone,
SigevSignal {
signal: Signal,
si_value: intptr_t,
},
SigevThreadId {
signal: Signal,
thread_id: type_of_thread_id,
si_value: intptr_t,
},
// some variants omitted
}Available on crate features
aio or signal only.Expand description
Specifies the notification method used by a SigEvent
Variants§
SigevNone
No notification will be delivered
SigevSignal
Notify by delivering a signal to the process.
Fields
§
si_value: intptr_tWill be present in the si_value field of the libc::siginfo_t
structure of the queued signal.
SigevThreadId
Notify by delivering a signal to a thread.
Fields
§
thread_id: type_of_thread_idLWP ID of the thread to notify
§
si_value: intptr_tWill be present in the si_value field of the libc::siginfo_t
structure of the queued signal.
Trait Implementations§
Source§impl<'fd> Clone for SigevNotify<'fd>
impl<'fd> Clone for SigevNotify<'fd>
Source§fn clone(&self) -> SigevNotify<'fd>
fn clone(&self) -> SigevNotify<'fd>
Returns a duplicate 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<'fd> Debug for SigevNotify<'fd>
impl<'fd> Debug for SigevNotify<'fd>
impl<'fd> Copy for SigevNotify<'fd>
Auto Trait Implementations§
impl<'fd> Freeze for SigevNotify<'fd>
impl<'fd> RefUnwindSafe for SigevNotify<'fd>
impl<'fd> Send for SigevNotify<'fd>
impl<'fd> Sync for SigevNotify<'fd>
impl<'fd> Unpin for SigevNotify<'fd>
impl<'fd> UnwindSafe for SigevNotify<'fd>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
SigevNone: 0 bytesSigevSignal: 12 bytesSigevThreadId: 20 bytes_Unreachable: 12 bytes