Lines Matching defs:clockid_t
12 use libc::{self, clockid_t};
17 /// Newtype pattern around `clockid_t` (which is just alias). It prevents bugs caused by
20 pub struct ClockId(clockid_t);
23 /// Creates `ClockId` from raw `clockid_t`
24 pub const fn from_raw(clk_id: clockid_t) -> Self {
68 /// Gets the raw `clockid_t` wrapped by `self`
69 pub const fn as_raw(self) -> clockid_t {
205 impl From<ClockId> for clockid_t {
211 impl From<clockid_t> for ClockId {
212 fn from(clk_id: clockid_t) -> Self {
274 let mut clk_id: MaybeUninit<libc::clockid_t> = MaybeUninit::uninit();