Struct libpulse_binding::time::MonotonicTs [−][src]
pub struct MonotonicTs(_);
A monotonic timestamp
Methods
impl MonotonicTs[src]
impl MonotonicTspub fn now() -> Self[src]
pub fn now() -> SelfReturn 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) -> boolpub 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 MonotonicTsimpl Clone for MonotonicTs[src]
impl Clone for MonotonicTsfn clone(&self) -> MonotonicTs[src]
fn clone(&self) -> MonotonicTsReturns 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 MonotonicTsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for MonotonicTs[src]
impl Default for MonotonicTsfn default() -> MonotonicTs[src]
fn default() -> MonotonicTsReturns the "default value" for a type. Read more
impl Eq for MonotonicTs[src]
impl Eq for MonotonicTsimpl PartialEq for MonotonicTs[src]
impl PartialEq for MonotonicTsfn eq(&self, other: &MonotonicTs) -> bool[src]
fn eq(&self, other: &MonotonicTs) -> boolThis 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) -> boolThis method tests for !=.
impl Ord for MonotonicTs[src]
impl Ord for MonotonicTsfn cmp(&self, other: &MonotonicTs) -> Ordering[src]
fn cmp(&self, other: &MonotonicTs) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for MonotonicTs[src]
impl PartialOrd for MonotonicTsfn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis 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 MonotonicTstype Output = Self
The resulting type after applying the + operator.
fn add(self, other: MicroSeconds) -> Self[src]
fn add(self, other: MicroSeconds) -> SelfPerforms the + operation.
impl AddAssign<MicroSeconds> for MonotonicTs[src]
impl AddAssign<MicroSeconds> for MonotonicTsfn 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 MonotonicTstype Output = Self
The resulting type after applying the - operator.
fn sub(self, other: MicroSeconds) -> Self[src]
fn sub(self, other: MicroSeconds) -> SelfPerforms the - operation.
impl SubAssign<MicroSeconds> for MonotonicTs[src]
impl SubAssign<MicroSeconds> for MonotonicTsfn 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 MonotonicTsAuto Trait Implementations
impl Send for MonotonicTs
impl Send for MonotonicTsimpl Sync for MonotonicTs
impl Sync for MonotonicTs