#[repr(transparent)]pub struct TimeVal(timeval);
Tuple Fields§
§0: timeval
Implementations§
source§impl TimeVal
impl TimeVal
sourcepub const fn new(seconds: time_t, microseconds: suseconds_t) -> Self
pub const fn new(seconds: time_t, microseconds: suseconds_t) -> Self
Construct a new TimeVal
from its components
fn micros_mod_sec(&self) -> suseconds_t
pub const fn tv_sec(&self) -> time_t
pub const fn tv_usec(&self) -> suseconds_t
Trait Implementations§
source§impl Ord for TimeVal
impl Ord for TimeVal
source§impl PartialEq for TimeVal
impl PartialEq for TimeVal
source§impl PartialOrd for TimeVal
impl PartialOrd for TimeVal
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TimeValLike for TimeVal
impl TimeValLike for TimeVal
source§fn microseconds(microseconds: i64) -> TimeVal
fn microseconds(microseconds: i64) -> TimeVal
Makes a new TimeVal
with given number of microseconds.
source§fn nanoseconds(nanoseconds: i64) -> TimeVal
fn nanoseconds(nanoseconds: i64) -> TimeVal
Makes a new TimeVal
with given number of nanoseconds. Some precision
will be lost
fn seconds(seconds: i64) -> TimeVal
fn milliseconds(milliseconds: i64) -> TimeVal
fn num_seconds(&self) -> i64
fn num_milliseconds(&self) -> i64
fn num_microseconds(&self) -> i64
fn num_nanoseconds(&self) -> i64
fn zero() -> Self
fn hours(hours: i64) -> Self
fn minutes(minutes: i64) -> Self
fn num_hours(&self) -> i64
fn num_minutes(&self) -> i64
impl Copy for TimeVal
impl Eq for TimeVal
impl StructuralPartialEq for TimeVal
Auto Trait Implementations§
impl Freeze for TimeVal
impl RefUnwindSafe for TimeVal
impl Send for TimeVal
impl Sync for TimeVal
impl Unpin for TimeVal
impl UnwindSafe for TimeVal
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