[][src]Struct os_clock::PosixClock

pub struct PosixClock(_);

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

impl PosixClock[src]

pub unsafe fn from_clockid(clockid: clockid_t) -> PosixClock[src]

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

impl Clock for PosixClock[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.