Enum grpcio_sys::gpr_clock_type[][src]

#[repr(u32)]pub enum gpr_clock_type {
    GPR_CLOCK_MONOTONIC,
    GPR_CLOCK_REALTIME,
    GPR_CLOCK_PRECISE,
    GPR_TIMESPAN,
}

The clocks we support.

Variants

GPR_CLOCK_MONOTONIC

Monotonic clock. Epoch undefined. Always moves forwards.

GPR_CLOCK_REALTIME

Realtime clock. May jump forwards or backwards. Settable by the system administrator. Has its epoch at 0:00:00 UTC 1 Jan 1970.

GPR_CLOCK_PRECISE

CPU cycle time obtained by rdtsc instruction on x86 platforms. Epoch undefined. Degrades to GPR_CLOCK_REALTIME on other platforms.

GPR_TIMESPAN

Unmeasurable clock type: no base, created by taking the difference between two times

Trait Implementations

impl Clone for gpr_clock_type[src]

impl Copy for gpr_clock_type[src]

impl Debug for gpr_clock_type[src]

impl Eq for gpr_clock_type[src]

impl Hash for gpr_clock_type[src]

impl PartialEq<gpr_clock_type> for gpr_clock_type[src]

impl StructuralEq for gpr_clock_type[src]

impl StructuralPartialEq for gpr_clock_type[src]

Auto Trait Implementations

impl RefUnwindSafe for gpr_clock_type

impl Send for gpr_clock_type

impl Sync for gpr_clock_type

impl Unpin for gpr_clock_type

impl UnwindSafe for gpr_clock_type

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.