Struct libpulse_binding::time::Timeval
source ·
[−]#[repr(transparent)]pub struct Timeval(pub timeval);Expand description
Wrapper for libc::timeval, attaching various methods and trait implementations.
Tuple Fields
0: timevalImplementations
Creates a new instance, with values provided.
Calculates the difference between the two specified timeval structs.
Gets the time difference between now and self.
Checked integer addition. Computes self + rhs, returning None if overflow occurred,
using the inner integer’s checked_add() method.
Checked integer addition. Computes self + rhs, returning None if overflow occurred,
using the inner integer’s checked_add() method.
Checked integer addition. Computes self + rhs, returning None if overflow occurred,
using the inner integer’s checked_add() method.
Checked integer subtraction. Computes self - rhs, returning None if overflow occurred,
using the inner integer’s checked_sub() method.
Checked integer subtraction. Computes self - rhs, returning None if overflow occurred,
using the inner integer’s checked_sub() method.
Checked integer subtraction. Computes self - rhs, returning None if overflow occurred,
using the inner integer’s checked_sub() method.
Checked integer multiplication. Computes self * rhs, returning None if overflow
occurred, using the inner integer’s checked_mul() method.
Checked integer division. Computes self / rhs, returning None if rhs == 0, using the
inner integer’s checked_div() method.
Checked integer remainder. Computes self % rhs, returning None if rhs == 0, using the
inner integer’s checked_rem() method.
Trait Implementations
Performs the += operation. Read more
Performs the += operation. Read more
Performs the += operation. Read more
Performs the /= operation. Read more
Performs the conversion.
Performs the *= operation. Read more
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
Performs the %= operation. Read more
Performs the -= operation. Read more
Performs the -= operation. Read more
Performs the -= operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for Timeval
impl UnwindSafe for Timeval
Blanket Implementations
Mutably borrows from an owned value. Read more