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, }
Expand description
The clocks we support.
Variants
Monotonic clock. Epoch undefined. Always moves forwards.
Realtime clock. May jump forwards or backwards. Settable by the system administrator. Has its epoch at 0:00:00 UTC 1 Jan 1970.
CPU cycle time obtained by rdtsc instruction on x86 platforms. Epoch undefined. Degrades to GPR_CLOCK_REALTIME on other platforms.
Unmeasurable clock type: no base, created by taking the difference between two times
Trait Implementations
impl Clone for gpr_clock_type
[src]
impl Clone for gpr_clock_type
[src]fn clone(&self) -> gpr_clock_type
[src]
fn clone(&self) -> gpr_clock_type
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for gpr_clock_type
[src]
impl Debug for gpr_clock_type
[src]impl Hash for gpr_clock_type
[src]
impl Hash for gpr_clock_type
[src]impl PartialEq<gpr_clock_type> for gpr_clock_type
[src]
impl PartialEq<gpr_clock_type> for gpr_clock_type
[src]impl Copy for gpr_clock_type
[src]
impl Eq 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more