#[non_exhaustive]#[repr(u32)]pub enum TimerfdClockId {
Realtime = 0,
Monotonic = 1,
Boottime = 7,
RealtimeAlarm = 8,
BoottimeAlarm = 9,
}
Expand description
CLOCK_*
constants for use with timerfd_create
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Realtime = 0
CLOCK_REALTIME
—A clock that tells the “real” time.
This is a clock that tells the amount of time elapsed since the Unix epoch, 1970-01-01T00:00:00Z. The clock is externally settable, so it is not monotonic. Successive reads may see decreasing times, so it isn’t reliable for measuring durations.
Monotonic = 1
CLOCK_MONOTONIC
—A clock that tells an abstract time.
Unlike Realtime
, this clock is not based on a fixed known epoch, so
individual times aren’t meaningful. However, since it isn’t settable,
it is reliable for measuring durations.
This clock does not advance while the system is suspended; see
Boottime
for a clock that does.
Boottime = 7
CLOCK_BOOTTIME
—Like Monotonic
, but advances while suspended.
This clock is similar to Monotonic
, but does advance while the system
is suspended.
RealtimeAlarm = 8
CLOCK_REALTIME_ALARM
—Like Realtime
, but wakes a suspended system.
This clock is like Realtime
, but can wake up a suspended system.
Use of this clock requires the CAP_WAKE_ALARM
Linux capability.
BoottimeAlarm = 9
CLOCK_BOOTTIME_ALARM
—Like Boottime
, but wakes a suspended system.
This clock is like Boottime
, but can wake up a suspended system.
Use of this clock requires the CAP_WAKE_ALARM
Linux capability.
Trait Implementations§
source§impl Clone for TimerfdClockId
impl Clone for TimerfdClockId
source§fn clone(&self) -> TimerfdClockId
fn clone(&self) -> TimerfdClockId
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimerfdClockId
impl Debug for TimerfdClockId
source§impl<'a, Num: ArgNumber> From<TimerfdClockId> for ArgReg<'a, Num>
impl<'a, Num: ArgNumber> From<TimerfdClockId> for ArgReg<'a, Num>
source§fn from(i: TimerfdClockId) -> Self
fn from(i: TimerfdClockId) -> Self
source§impl Hash for TimerfdClockId
impl Hash for TimerfdClockId
source§impl PartialEq for TimerfdClockId
impl PartialEq for TimerfdClockId
impl Copy for TimerfdClockId
impl Eq for TimerfdClockId
impl StructuralPartialEq for TimerfdClockId
Auto Trait Implementations§
impl Freeze for TimerfdClockId
impl RefUnwindSafe for TimerfdClockId
impl Send for TimerfdClockId
impl Sync for TimerfdClockId
impl Unpin for TimerfdClockId
impl UnwindSafe for TimerfdClockId
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)