Struct libpulse_binding::time::Timeval[][src]

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

Wrapper for libc::timeval, attaching various methods and trait implementations

Methods

impl Timeval
[src]

Create a new instance, with values provided.

Create a new instance, with value of zero.

Calculate the difference between the two specified timeval structs.

Return the time difference between now and self

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

The resulting type after applying the + operator.

Performs the + operation.

impl AddAssign for Timeval
[src]

Performs the += operation.

impl Add<MicroSeconds> for Timeval
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl AddAssign<MicroSeconds> for Timeval
[src]

Performs the += operation.

impl Add<Duration> for Timeval
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl AddAssign<Duration> for Timeval
[src]

Performs the += operation.

impl Sub for Timeval
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl SubAssign for Timeval
[src]

Performs the -= operation.

impl Sub<MicroSeconds> for Timeval
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl SubAssign<MicroSeconds> for Timeval
[src]

Performs the -= operation.

impl Sub<Duration> for Timeval
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl SubAssign<Duration> for Timeval
[src]

Performs the -= operation.

impl Mul<u32> for Timeval
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl MulAssign<u32> for Timeval
[src]

Performs the *= operation.

impl Div<u32> for Timeval
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl DivAssign<u32> for Timeval
[src]

Performs the /= operation.

impl Rem<u32> for Timeval
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl RemAssign<u32> for Timeval
[src]

Performs the %= operation.

impl From<Timeval> for MicroSeconds
[src]

Performs the conversion.

impl From<MicroSeconds> for Timeval
[src]

Performs the conversion.

impl From<Duration> for Timeval
[src]

Performs the conversion.

impl From<Timeval> for Duration
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Timeval

impl Sync for Timeval