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 ==
.impl Copy for gpr_clock_type
impl Eq for gpr_clock_type
impl StructuralEq for gpr_clock_type
impl StructuralPartialEq for gpr_clock_type
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§
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