Struct libpulse_binding::time::MonotonicTs [−][src]
pub struct MonotonicTs(_);
A monotonic timestamp
Methods
impl MonotonicTs
[src]
impl MonotonicTs
pub fn now() -> Self
[src]
pub fn now() -> Self
Return 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.
pub fn is_valid(&self) -> bool
[src]
pub fn is_valid(&self) -> bool
pub fn checked_add(self, other: MicroSeconds) -> Option<Self>
[src]
pub fn checked_add(self, other: MicroSeconds) -> Option<Self>
pub fn checked_sub(self, other: MicroSeconds) -> Option<Self>
[src]
pub fn checked_sub(self, other: MicroSeconds) -> Option<Self>
Trait Implementations
impl Copy for MonotonicTs
[src]
impl Copy for MonotonicTs
impl Clone for MonotonicTs
[src]
impl Clone for MonotonicTs
fn clone(&self) -> MonotonicTs
[src]
fn clone(&self) -> MonotonicTs
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for MonotonicTs
[src]
impl Debug for MonotonicTs
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for MonotonicTs
[src]
impl Default for MonotonicTs
fn default() -> MonotonicTs
[src]
fn default() -> MonotonicTs
Returns the "default value" for a type. Read more
impl Eq for MonotonicTs
[src]
impl Eq for MonotonicTs
impl PartialEq for MonotonicTs
[src]
impl PartialEq for MonotonicTs
fn eq(&self, other: &MonotonicTs) -> bool
[src]
fn eq(&self, other: &MonotonicTs) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MonotonicTs) -> bool
[src]
fn ne(&self, other: &MonotonicTs) -> bool
This method tests for !=
.
impl Ord for MonotonicTs
[src]
impl Ord for MonotonicTs
fn cmp(&self, other: &MonotonicTs) -> Ordering
[src]
fn cmp(&self, other: &MonotonicTs) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for MonotonicTs
[src]
impl PartialOrd for MonotonicTs
fn partial_cmp(&self, other: &MonotonicTs) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &MonotonicTs) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &MonotonicTs) -> bool
[src]
fn lt(&self, other: &MonotonicTs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &MonotonicTs) -> bool
[src]
fn le(&self, other: &MonotonicTs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &MonotonicTs) -> bool
[src]
fn gt(&self, other: &MonotonicTs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &MonotonicTs) -> bool
[src]
fn ge(&self, other: &MonotonicTs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Add<MicroSeconds> for MonotonicTs
[src]
impl Add<MicroSeconds> for MonotonicTs
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: MicroSeconds) -> Self
[src]
fn add(self, other: MicroSeconds) -> Self
Performs the +
operation.
impl AddAssign<MicroSeconds> for MonotonicTs
[src]
impl AddAssign<MicroSeconds> for MonotonicTs
fn add_assign(&mut self, rhs: MicroSeconds)
[src]
fn add_assign(&mut self, rhs: MicroSeconds)
Performs the +=
operation.
impl Sub<MicroSeconds> for MonotonicTs
[src]
impl Sub<MicroSeconds> for MonotonicTs
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: MicroSeconds) -> Self
[src]
fn sub(self, other: MicroSeconds) -> Self
Performs the -
operation.
impl SubAssign<MicroSeconds> for MonotonicTs
[src]
impl SubAssign<MicroSeconds> for MonotonicTs
fn sub_assign(&mut self, rhs: MicroSeconds)
[src]
fn sub_assign(&mut self, rhs: MicroSeconds)
Performs the -=
operation.
impl Display for MonotonicTs
[src]
impl Display for MonotonicTs
Auto Trait Implementations
impl Send for MonotonicTs
impl Send for MonotonicTs
impl Sync for MonotonicTs
impl Sync for MonotonicTs