#[repr(transparent)]pub struct ClockId(pub usize);Expand description
时钟类型标识(与 clock_gettime 等接口配合使用)。
Tuple Fields§
§0: usizeImplementations§
Source§impl ClockId
impl ClockId
Sourcepub const CLOCK_REALTIME: Self
pub const CLOCK_REALTIME: Self
实时时钟(受系统时间校正影响)。
Sourcepub const CLOCK_MONOTONIC: Self
pub const CLOCK_MONOTONIC: Self
单调时钟(不受 wall-clock 调整影响,常用于计时)。
pub const CLOCK_PROCESS_CPUTIME_ID: Self
pub const CLOCK_THREAD_CPUTIME_ID: Self
pub const CLOCK_MONOTONIC_RAW: Self
pub const CLOCK_REALTIME_COARSE: Self
pub const CLOCK_MONOTONIC_COARSE: Self
pub const CLOCK_BOOTTIME: Self
pub const CLOCK_REALTIME_ALARM: Self
pub const CLOCK_BOOTTIME_ALARM: Self
pub const CLOCK_SGI_CYCLE: Self
pub const CLOCK_TAI: Self
Trait Implementations§
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 UnsafeUnpin 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