#[repr(u32)]pub enum gpr_clock_type {
GPR_CLOCK_MONOTONIC = 0,
GPR_CLOCK_REALTIME = 1,
GPR_CLOCK_PRECISE = 2,
GPR_TIMESPAN = 3,
}
Expand description
The clocks we support.
Variants§
GPR_CLOCK_MONOTONIC = 0
Monotonic clock. Epoch undefined. Always moves forwards.
GPR_CLOCK_REALTIME = 1
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 = 2
CPU cycle time obtained by rdtsc instruction on x86 platforms. Epoch undefined. Degrades to GPR_CLOCK_REALTIME on other platforms.
GPR_TIMESPAN = 3
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 for gpr_clock_type
impl PartialEq for gpr_clock_type
impl Copy for gpr_clock_type
impl Eq for gpr_clock_type
impl StructuralPartialEq for gpr_clock_type
Auto Trait Implementations§
impl Freeze for gpr_clock_type
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