Struct nix::sys::time::TimeVal
[−]
[src]
pub struct TimeVal {
pub tv_sec: time_t,
pub tv_usec: suseconds_t,
}Fields
tv_sec: time_t
tv_usec: suseconds_t
Methods
impl TimeVal[src]
fn zero() -> TimeVal
fn hours(hours: i64) -> TimeVal
fn minutes(minutes: i64) -> TimeVal
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 num_hours(&self) -> i64
fn num_minutes(&self) -> i64
fn num_seconds(&self) -> i64
fn num_milliseconds(&self) -> i64
fn num_microseconds(&self) -> i64
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 PartialEq for TimeVal[src]
fn eq(&self, __arg_0: &TimeVal) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TimeVal) -> bool
This method tests for !=.
impl Eq for TimeVal[src]
impl PartialOrd for TimeVal[src]
fn partial_cmp(&self, __arg_0: &TimeVal) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &TimeVal) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &TimeVal) -> bool
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &TimeVal) -> bool
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &TimeVal) -> bool
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for TimeVal[src]
fn cmp(&self, __arg_0: &TimeVal) -> Ordering
This method returns an Ordering between self and other. Read more
impl Debug for TimeVal[src]
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