Struct cloudabi::subscription
[−]
[src]
#[repr(C)]pub struct subscription { pub userdata: userdata, pub unused: u16, pub type_: eventtype, pub union: subscription_union, }
Subscription to an event.
Fields
userdata: userdata
User-provided value that is attached to the
subscription in the kernel and returned through
event.userdata
.
unused: u16
Used by previous implementations. Ignored.
type_: eventtype
The type of the event to which to subscribe.
Currently, CONDVAR
,
LOCK_RDLOCK
, and LOCK_WRLOCK
must be provided as the first subscription and may
only be followed by up to one other subscription,
having type CLOCK
.
union: subscription_union
Trait Implementations
impl Copy for subscription
[src]
impl Clone for subscription
[src]
fn clone(&self) -> subscription
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more