pub struct PosixClock(/* private fields */);
Expand description
The POSIX clockid_t represents numerous types of clocks (wall, cpu, etc) However, they share a common API
https://pubs.opengroup.org/onlinepubs/9699919799/
Implementations§
Source§impl PosixClock
impl PosixClock
Sourcepub unsafe fn from_clockid(clockid: clockid_t) -> PosixClock
pub unsafe fn from_clockid(clockid: clockid_t) -> PosixClock
Creating a POSIX clock struct could result in undefined behavior if passed an invalid clockid_t
It is safe to call this on a known-valid clockid
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PosixClock
impl RefUnwindSafe for PosixClock
impl Send for PosixClock
impl Sync for PosixClock
impl Unpin for PosixClock
impl UnwindSafe for PosixClock
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