Struct libpulse_binding::timeval::Timeval[][src]

#[repr(C)]
pub struct Timeval(pub timeval);

Wrapper for libc::timeval, providing trait impls Warning, this must remain directly transmutable with the inner libc::timeval

Methods

impl Timeval
[src]

Important traits for &'a mut R

Obtain the current wallclock timestamp, just like UNIX gettimeofday().

Calculate the difference between the two specified timeval structs.

Return the time difference between now and self

Add the specified time in microseconds

Subtract the specified time in microseconds

Set the specified usec value

Trait Implementations

impl Copy for Timeval
[src]

impl Clone for Timeval
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 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 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 Debug for Timeval
[src]

Formats the value using the given formatter. Read more

impl From<Timeval> for MicroSeconds
[src]

Performs the conversion.

impl From<MicroSeconds> for Timeval
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Timeval

impl Sync for Timeval