Struct nix::sys::time::TimeVal
[−]
[src]
#[repr(C)]pub struct TimeVal(_);
Methods
impl TimeVal[src]
Trait Implementations
impl Clone for TimeVal[src]
fn clone(&self) -> TimeVal[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for TimeVal[src]
impl AsRef<timeval> for TimeVal[src]
impl Debug for TimeVal[src]
fn fmt(&self, fmt: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for TimeVal[src]
fn eq(&self, other: &TimeVal) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Eq for TimeVal[src]
impl Ord for TimeVal[src]
fn cmp(&self, other: &TimeVal) -> Ordering[src]
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for TimeVal[src]
fn partial_cmp(&self, other: &TimeVal) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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) -> bool1.0.0[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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[src]
fn milliseconds(milliseconds: i64) -> TimeVal[src]
fn microseconds(microseconds: i64) -> TimeVal[src]
Makes a new TimeVal with given number of microseconds.
fn nanoseconds(nanoseconds: i64) -> TimeVal[src]
Makes a new TimeVal with given number of nanoseconds. Some precision
will be lost
fn num_seconds(&self) -> i64[src]
fn num_milliseconds(&self) -> i64[src]
fn num_microseconds(&self) -> i64[src]
fn num_nanoseconds(&self) -> i64[src]
fn zero() -> Self[src]
fn hours(hours: i64) -> Self[src]
fn minutes(minutes: i64) -> Self[src]
fn num_hours(&self) -> i64[src]
fn num_minutes(&self) -> i64[src]
impl Neg for TimeVal[src]
type Output = TimeVal
The resulting type after applying the - operator.
fn neg(self) -> TimeVal[src]
Performs the unary - operation.
impl Add for TimeVal[src]
type Output = TimeVal
The resulting type after applying the + operator.
fn add(self, rhs: TimeVal) -> TimeVal[src]
Performs the + operation.
impl Sub for TimeVal[src]
type Output = TimeVal
The resulting type after applying the - operator.
fn sub(self, rhs: TimeVal) -> TimeVal[src]
Performs the - operation.
impl Mul<i32> for TimeVal[src]
type Output = TimeVal
The resulting type after applying the * operator.
fn mul(self, rhs: i32) -> TimeVal[src]
Performs the * operation.
impl Div<i32> for TimeVal[src]
type Output = TimeVal
The resulting type after applying the / operator.
fn div(self, rhs: i32) -> TimeVal[src]
Performs the / operation.