pub enum ClockType {
Monotonic,
Real,
ProcessCpu,
ThreadCpu,
}
Expand description
Wrapper over libc::clockid_t
to specify Linux Kernel clock source.
Variants§
Monotonic
Equivalent to libc::CLOCK_MONOTONIC
.
Real
Equivalent to libc::CLOCK_REALTIME
.
ProcessCpu
Equivalent to libc::CLOCK_PROCESS_CPUTIME_ID
.
ThreadCpu
Equivalent to libc::CLOCK_THREAD_CPUTIME_ID
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClockType
impl RefUnwindSafe for ClockType
impl Send for ClockType
impl Sync for ClockType
impl Unpin for ClockType
impl UnwindSafe for ClockType
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