Enum grpcio_sys::gpr_clock_type
source · #[repr(u32)]
pub enum gpr_clock_type {
GPR_CLOCK_MONOTONIC,
GPR_CLOCK_REALTIME,
GPR_CLOCK_PRECISE,
GPR_TIMESPAN,
}
Expand description
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§
source§impl Clone for gpr_clock_type
impl Clone for gpr_clock_type
source§fn clone(&self) -> gpr_clock_type
fn clone(&self) -> gpr_clock_type
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for gpr_clock_type
impl Debug for gpr_clock_type
source§impl Hash for gpr_clock_type
impl Hash for gpr_clock_type
source§impl PartialEq<gpr_clock_type> for gpr_clock_type
impl PartialEq<gpr_clock_type> for gpr_clock_type
source§fn eq(&self, other: &gpr_clock_type) -> bool
fn eq(&self, other: &gpr_clock_type) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.