Struct nix::sys::time::TimeVal
[−]
[src]
#[repr(C)]pub struct TimeVal(_);
Methods
impl TimeVal
[src]
fn tv_sec(&self) -> time_t
fn tv_usec(&self) -> suseconds_t
Trait Implementations
impl Clone for TimeVal
[src]
fn clone(&self) -> TimeVal
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for TimeVal
[src]
impl AsRef<timeval> for TimeVal
[src]
impl Debug for TimeVal
[src]
impl PartialEq for TimeVal
[src]
fn eq(&self, other: &TimeVal) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for TimeVal
[src]
impl Ord for TimeVal
[src]
fn cmp(&self, other: &TimeVal) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialOrd for TimeVal
[src]
fn partial_cmp(&self, other: &TimeVal) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl TimeValLike for TimeVal
[src]
fn seconds(seconds: i64) -> TimeVal
fn milliseconds(milliseconds: i64) -> TimeVal
fn microseconds(microseconds: i64) -> TimeVal
Makes a new TimeVal
with given number of microseconds.
fn nanoseconds(nanoseconds: i64) -> TimeVal
Makes a new TimeVal
with given number of nanoseconds. Some precision
will be lost
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 Neg for TimeVal
[src]
type Output = TimeVal
The resulting type after applying the -
operator
fn neg(self) -> TimeVal
The method for the unary -
operator
impl Add for TimeVal
[src]
type Output = TimeVal
The resulting type after applying the +
operator
fn add(self, rhs: TimeVal) -> TimeVal
The method for the +
operator
impl Sub for TimeVal
[src]
type Output = TimeVal
The resulting type after applying the -
operator
fn sub(self, rhs: TimeVal) -> TimeVal
The method for the -
operator
impl Mul<i32> for TimeVal
[src]
type Output = TimeVal
The resulting type after applying the *
operator
fn mul(self, rhs: i32) -> TimeVal
The method for the *
operator
impl Div<i32> for TimeVal
[src]
type Output = TimeVal
The resulting type after applying the /
operator
fn div(self, rhs: i32) -> TimeVal
The method for the /
operator