[][src]Enum wasihost_core::wasi_snapshot_preview1::Clockid

#[non_exhaustive]
pub enum Clockid {
    Realtime,
    Monotonic,
    ProcessCputimeId,
    ThreadCputimeId,
}

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

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

Monotonic

The store-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.

ProcessCputimeId

The CPU-time clock associated with the current process.

ThreadCputimeId

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 Ord for Clockid[src]

impl PartialEq<Clockid> for Clockid[src]

impl PartialOrd<Clockid> for Clockid[src]

impl StructuralEq for Clockid[src]

impl StructuralPartialEq for Clockid[src]

impl WasiValue for Clockid[src]

type NativeType = clockid

The native WASM type.

Auto Trait Implementations

impl RefUnwindSafe for Clockid

impl Send for Clockid

impl Sync for Clockid

impl Unpin for Clockid

impl UnwindSafe 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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

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

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.