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_TAI: ClockId = _
pub const CLOCK_THREAD_CPUTIME_ID: ClockId = _
Sourcepub fn pid_cpu_clock_id(pid: Pid) -> Result<Self>
pub fn pid_cpu_clock_id(pid: Pid) -> Result<Self>
Returns ClockId
of a pid
CPU-time clock
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