[][src]Enum cloudabi::eventtype

#[repr(u8)]
#[non_exhaustive]
pub enum eventtype {
    CLOCK,
    CONDVAR,
    FD_READ,
    FD_WRITE,
    LOCK_RDLOCK,
    LOCK_WRLOCK,
    PROC_TERMINATE,
}

Type of a subscription to an event or its occurrence.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CLOCK

The time value of clock subscription.union.clock.clock_id has reached timestamp subscription.union.clock.timeout.

CONDVAR

Condition variable subscription.union.condvar.condvar has been woken up and subscription.union.condvar.lock has been acquired for writing.

FD_READ

File descriptor subscription.union.fd_readwrite.fd has data available for reading. This event always triggers for regular files.

FD_WRITE

File descriptor subscription.union.fd_readwrite.fd has capacity available for writing. This event always triggers for regular files.

LOCK_RDLOCK

Lock subscription.union.lock.lock has been acquired for reading.

LOCK_WRLOCK

Lock subscription.union.lock.lock has been acquired for writing.

PROC_TERMINATE

The process associated with process descriptor subscription.union.proc_terminate.fd has terminated.

Trait Implementations

impl Clone for eventtype[src]

impl Copy for eventtype[src]

impl Debug for eventtype[src]

impl Eq for eventtype[src]

impl Hash for eventtype[src]

impl PartialEq<eventtype> for eventtype[src]

impl StructuralEq for eventtype[src]

impl StructuralPartialEq for eventtype[src]

Auto Trait Implementations

impl Send for eventtype

impl Sync for eventtype

impl Unpin for eventtype

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.