Struct grpcio_sys::GprTimespec [−][src]
#[repr(C)]pub struct GprTimespec { pub tv_sec: int64_t, pub tv_nsec: int32_t, pub clock_type: GprClockType, }
Analogous to struct timespec. On some machines, absolute times may be in local time.
Based on gpr_timespec.
Fields
tv_sec: int64_t
tv_nsec: int32_t
clock_type: GprClockType
Against which clock was this time measured? (or GprClockType::Timespan if this is a
relative time measure)
Methods
impl GprTimespec[src]
impl GprTimespecpub fn inf_future() -> GprTimespec[src]
pub fn inf_future() -> GprTimespecTrait Implementations
impl Clone for GprTimespec[src]
impl Clone for GprTimespecfn clone(&self) -> GprTimespec[src]
fn clone(&self) -> GprTimespecReturns 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 Copy for GprTimespec[src]
impl Copy for GprTimespecimpl From<Duration> for GprTimespec[src]
impl From<Duration> for GprTimespecfn from(dur: Duration) -> GprTimespec[src]
fn from(dur: Duration) -> GprTimespecPerforms the conversion.
Auto Trait Implementations
impl Send for GprTimespec
impl Send for GprTimespecimpl Sync for GprTimespec
impl Sync for GprTimespec