Struct libpulse_binding::time::MonotonicTs
source ·
[−]pub struct MonotonicTs(_);Expand description
A monotonic timestamp.
Implementations
Gets the current monotonic system time in microseconds.
Note, if such a clock is not available then this will actually fall back to the wallclock
time instead. No indication is available for whether or not this is the case, and the
return value is still a MonotonicTs type.
Returns true so long as inner value is not MicroSeconds::INVALID.
Checked integer addition. Computes self + rhs, returning None if overflow occurred,
using the inner MicroSeconds’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 MicroSeconds’s checked_sub() method.
Checked integer subtraction. Computes self - rhs, returning None if overflow occurred,
using the inner integer’s checked_sub() method.
Trait Implementations
Performs the += operation. Read more
Performs the += operation. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Auto Trait Implementations
impl RefUnwindSafe for MonotonicTs
impl Send for MonotonicTs
impl Sync for MonotonicTs
impl Unpin for MonotonicTs
impl UnwindSafe for MonotonicTs
Blanket Implementations
Mutably borrows from an owned value. Read more