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 RefUnwindSafe for ClockType
impl Send for ClockType
impl Sync for ClockType
impl Unpin for ClockType
impl UnwindSafe for ClockType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more