#[repr(C)]pub struct subscription {
pub userdata: userdata,
pub unused: u16,
pub type: eventtype,
pub union: subscription_union,
}Expand description
Subscription to an event.
Fields§
§userdata: userdataUser-provided value that is attached to the
subscription in the kernel and returned through
event.userdata.
unused: u16Used by previous implementations. Ignored.
type: eventtypeThe 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_unionTrait Implementations§
Source§impl Clone for subscription
impl Clone for subscription
Source§fn clone(&self) -> subscription
fn clone(&self) -> subscription
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 moreimpl Copy for subscription
Auto Trait Implementations§
impl Freeze for subscription
impl RefUnwindSafe for subscription
impl !Send for subscription
impl !Sync for subscription
impl Unpin for subscription
impl UnwindSafe for subscription
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