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

#[repr(C)]
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

[]

Compares and returns the maximum of two values. Read more

[]

Compares and returns the minimum of two values. Read more

impl Debug for TimeVal
[src]
[+]

[]

Formats the value using the given formatter. Read more

impl Neg for TimeVal
[src]
[+]

The resulting type after applying the - operator.

[]

Performs the unary - operation.

impl Add for TimeVal
[src]
[+]

The resulting type after applying the + operator.

[]

Performs the + operation.

impl Sub for TimeVal
[src]
[+]

The resulting type after applying the - operator.

[]

Performs the - operation.

impl Mul<i32> for TimeVal
[src]
[+]

The resulting type after applying the * operator.

[]

Performs the * operation.

impl Div<i32> for TimeVal
[src]
[+]

The resulting type after applying the / operator.

[]

Performs the / operation.

impl Display for TimeVal
[src]
[+]

[]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for TimeVal

impl Sync for TimeVal