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
sourceimpl Clone for gpr_clock_type
impl Clone for gpr_clock_type
sourcefn clone(&self) -> gpr_clock_type
fn clone(&self) -> gpr_clock_type
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for gpr_clock_type
impl Debug for gpr_clock_type
sourceimpl Hash for gpr_clock_type
impl Hash for gpr_clock_type
sourceimpl PartialEq<gpr_clock_type> for gpr_clock_type
impl PartialEq<gpr_clock_type> for gpr_clock_type
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more