Enum rsix::time::ClockId [−][src]
#[repr(u32)]
#[non_exhaustive]
pub enum ClockId {
Realtime,
Monotonic,
ProcessCPUTime,
ThreadCPUTime,
RealtimeCoarse,
MonotonicCoarse,
MonotonicRaw,
}
Expand description
CLOCK_*
constants for use with clock_gettime
.
These constants are always supported at runtime so clock_gettime
never
has to fail with INVAL
due to an unsupported clock. See
DynamicClockId
for a greater set of clocks, with the caveat that not
all of them are always support
Variants (Non-exhaustive)
This enum is marked as 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_REALTIME
CLOCK_MONOTONIC
CLOCK_PROCESS_CPUTIME_ID
CLOCK_THREAD_CPUTIME_ID
CLOCK_REALTIME_COARSE
CLOCK_MONOTONIC_COARSE
CLOCK_MONOTONIC_RAW
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ClockId
impl UnwindSafe for ClockId
Blanket Implementations
Mutably borrows from an owned value. Read more