pub struct ClockId(/* private fields */);
Expand description
Clock identifier
Newtype pattern around clockid_t
(which is just alias). It prevents bugs caused by
accidentally passing wrong value.
Implementations§
Source§impl ClockId
impl ClockId
pub const CLOCK_BOOTTIME: ClockId = _
pub const CLOCK_BOOTTIME_ALARM: ClockId = _
pub const CLOCK_MONOTONIC: ClockId = _
pub const CLOCK_MONOTONIC_COARSE: ClockId = _
pub const CLOCK_MONOTONIC_RAW: ClockId = _
pub const CLOCK_PROCESS_CPUTIME_ID: ClockId = _
pub const CLOCK_REALTIME: ClockId = _
pub const CLOCK_REALTIME_ALARM: ClockId = _
pub const CLOCK_REALTIME_COARSE: ClockId = _
pub const CLOCK_SGI_CYCLE: ClockId = _
pub const CLOCK_TAI: ClockId = _
pub const CLOCK_THREAD_CPUTIME_ID: ClockId = _
Trait Implementations§
Source§impl Ord for ClockId
impl Ord for ClockId
Source§impl PartialOrd for ClockId
impl PartialOrd for ClockId
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)