Struct nix::sys::time::TimeVal [] [src]

pub struct TimeVal {
    pub tv_sec: time_t,
    pub tv_usec: suseconds_t,
}

Fields

Methods

impl TimeVal
[src]

Makes a new TimeVal with given number of microseconds.

Trait Implementations

impl Clone for TimeVal
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for TimeVal
[src]

impl PartialEq for TimeVal
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for TimeVal
[src]

impl PartialOrd for TimeVal
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

This method returns an Ordering between self and other. Read more

impl Debug for TimeVal
[src]

Formats the value using the given formatter.

impl Neg for TimeVal
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl Add for TimeVal
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub for TimeVal
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<i32> for TimeVal
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div<i32> for TimeVal
[src]

The resulting type after applying the / operator

The method for the / operator

impl Display for TimeVal
[src]

Formats the value using the given formatter.