[][src]Enum cloudabi::clockid

#[repr(u32)]
#[non_exhaustive]
pub enum clockid {
    MONOTONIC,
    PROCESS_CPUTIME_ID,
    REALTIME,
    THREAD_CPUTIME_ID,
}

Identifiers for clocks.

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.
MONOTONIC

The system-wide monotonic clock, which is defined as a clock measuring real time, whose value cannot be adjusted and which cannot have negative clock jumps.

The epoch of this clock is undefined. The absolute time value of this clock therefore has no meaning.

PROCESS_CPUTIME_ID

The CPU-time clock associated with the current process.

REALTIME

The system-wide clock measuring real time. Time value zero corresponds with 1970-01-01T00:00:00Z.

THREAD_CPUTIME_ID

The CPU-time clock associated with the current thread.

Trait Implementations

impl Clone for clockid[src]

impl Copy for clockid[src]

impl Debug for clockid[src]

impl Eq for clockid[src]

impl Hash for clockid[src]

impl PartialEq<clockid> for clockid[src]

impl StructuralEq for clockid[src]

impl StructuralPartialEq for clockid[src]

Auto Trait Implementations

impl Send for clockid

impl Sync for clockid

impl Unpin for clockid

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.