#[repr(i32)]pub enum Clock {
Realtime = 0,
Monotonic = 1,
ProcessCpuTime = 2,
ThreadCpuTime = 3,
MonotonicRaw = 4,
RealtimeCoarse = 5,
MonotonicCoarse = 6,
Boottime = 7,
RealtimeAlarm = 8,
BoottimeAlarm = 9,
Tai = 11,
}Expand description
Horloge Linux (clockid_t).
Variants§
Realtime = 0
Heure murale UTC, ajustable.
Monotonic = 1
Horloge monotone depuis le boot, hors suspend.
ProcessCpuTime = 2
Temps CPU consommé par le processus.
ThreadCpuTime = 3
Temps CPU consommé par le thread.
MonotonicRaw = 4
Horloge monotone brute, hors NTP slewing.
RealtimeCoarse = 5
Variante coarse de Realtime.
MonotonicCoarse = 6
Variante coarse de Monotonic.
Boottime = 7
Horloge monotone incluant le suspend.
RealtimeAlarm = 8
Réveil basé sur Realtime.
BoottimeAlarm = 9
Réveil basé sur Boottime.
Tai = 11
Temps atomique international.
Implementations§
Trait Implementations§
impl Copy for Clock
impl Eq for Clock
Source§impl Ord for Clock
impl Ord for Clock
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Clock
impl PartialOrd for Clock
impl StructuralPartialEq for Clock
Auto Trait Implementations§
impl Freeze for Clock
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnsafeUnpin for Clock
impl UnwindSafe for Clock
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