#[non_exhaustive]#[repr(u32)]pub enum clockid {
MONOTONIC = 1,
PROCESS_CPUTIME_ID = 2,
REALTIME = 3,
THREAD_CPUTIME_ID = 4,
}Expand description
Identifiers for clocks.
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.
MONOTONIC = 1
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 = 2
The CPU-time clock associated with the current process.
REALTIME = 3
The system-wide clock measuring real time. Time value zero corresponds with 1970-01-01T00:00:00Z.
THREAD_CPUTIME_ID = 4
The CPU-time clock associated with the current thread.
Trait Implementations§
impl Copy for clockid
impl Eq for clockid
impl StructuralPartialEq for clockid
Auto Trait Implementations§
impl Freeze for clockid
impl RefUnwindSafe for clockid
impl Send for clockid
impl Sync for clockid
impl Unpin for clockid
impl UnwindSafe for clockid
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