Struct grpcio_sys::gpr_timespec
source · #[repr(C)]pub struct gpr_timespec {
pub tv_sec: i64,
pub tv_nsec: i32,
pub clock_type: gpr_clock_type,
}
Expand description
Analogous to struct timespec. On some machines, absolute times may be in local time.
Fields§
§tv_sec: i64
§tv_nsec: i32
§clock_type: gpr_clock_type
Against which clock was this time measured? (or GPR_TIMESPAN if this is a relative time measure)
Implementations§
source§impl gpr_timespec
impl gpr_timespec
pub fn inf_future() -> gpr_timespec
Trait Implementations§
source§impl Clone for gpr_timespec
impl Clone for gpr_timespec
source§fn clone(&self) -> gpr_timespec
fn clone(&self) -> gpr_timespec
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_timespec
impl Debug for gpr_timespec
source§impl From<Duration> for gpr_timespec
impl From<Duration> for gpr_timespec
source§fn from(dur: Duration) -> gpr_timespec
fn from(dur: Duration) -> gpr_timespec
Converts to this type from the input type.
impl Copy for gpr_timespec
Auto Trait Implementations§
impl RefUnwindSafe for gpr_timespec
impl Send for gpr_timespec
impl Sync for gpr_timespec
impl Unpin for gpr_timespec
impl UnwindSafe for gpr_timespec
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