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 GprTimespec
pub fn inf_future() -> GprTimespec
[src]
pub fn inf_future() -> GprTimespec
Trait Implementations
impl Clone for GprTimespec
[src]
impl Clone for GprTimespec
fn clone(&self) -> GprTimespec
[src]
fn clone(&self) -> GprTimespec
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 Copy for GprTimespec
[src]
impl Copy for GprTimespec
impl From<Duration> for GprTimespec
[src]
impl From<Duration> for GprTimespec
fn from(dur: Duration) -> GprTimespec
[src]
fn from(dur: Duration) -> GprTimespec
Performs the conversion.
Auto Trait Implementations
impl Send for GprTimespec
impl Send for GprTimespec
impl Sync for GprTimespec
impl Sync for GprTimespec