Struct libpulse_binding::time::MonotonicTs [−][src]
A monotonic timestamp.
Implementations
impl MonotonicTs[src]
pub fn now() -> Self[src]
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.
pub fn is_valid(&self) -> bool[src]
Returns true so long as inner value is not MicroSeconds::INVALID.
pub fn checked_add(self, rhs: MicroSeconds) -> Option<Self>[src]
Checked integer addition. Computes self + rhs, returning None if overflow occurred,
using the inner MicroSeconds’s checked_add() method.
pub fn checked_add_duration(self, rhs: Duration) -> Option<Self>[src]
Checked integer addition. Computes self + rhs, returning None if overflow occurred,
using the inner integer’s checked_add() method.
pub fn checked_sub(self, rhs: MicroSeconds) -> Option<Self>[src]
Checked integer subtraction. Computes self - rhs, returning None if overflow occurred,
using the inner MicroSeconds’s checked_sub() method.
pub fn checked_sub_duration(self, rhs: Duration) -> Option<Self>[src]
Checked integer subtraction. Computes self - rhs, returning None if overflow occurred,
using the inner integer’s checked_sub() method.
Trait Implementations
impl Add<Duration> for MonotonicTs[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: Duration) -> Self[src]
impl Add<MicroSeconds> for MonotonicTs[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, rhs: MicroSeconds) -> Self[src]
impl AddAssign<Duration> for MonotonicTs[src]
fn add_assign(&mut self, rhs: Duration)[src]
impl AddAssign<MicroSeconds> for MonotonicTs[src]
fn add_assign(&mut self, rhs: MicroSeconds)[src]
impl Clone for MonotonicTs[src]
fn clone(&self) -> MonotonicTs[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for MonotonicTs[src]
impl Debug for MonotonicTs[src]
impl Default for MonotonicTs[src]
fn default() -> MonotonicTs[src]
impl Display for MonotonicTs[src]
impl Eq for MonotonicTs[src]
impl Ord for MonotonicTs[src]
fn cmp(&self, other: &MonotonicTs) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<MonotonicTs> for MonotonicTs[src]
fn eq(&self, other: &MonotonicTs) -> bool[src]
fn ne(&self, other: &MonotonicTs) -> bool[src]
impl PartialOrd<MonotonicTs> for MonotonicTs[src]
fn partial_cmp(&self, other: &MonotonicTs) -> Option<Ordering>[src]
fn lt(&self, other: &MonotonicTs) -> bool[src]
fn le(&self, other: &MonotonicTs) -> bool[src]
fn gt(&self, other: &MonotonicTs) -> bool[src]
fn ge(&self, other: &MonotonicTs) -> bool[src]
impl StructuralEq for MonotonicTs[src]
impl StructuralPartialEq for MonotonicTs[src]
impl Sub<Duration> for MonotonicTs[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, rhs: Duration) -> Self[src]
impl Sub<MicroSeconds> for MonotonicTs[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, rhs: MicroSeconds) -> Self[src]
impl SubAssign<Duration> for MonotonicTs[src]
fn sub_assign(&mut self, rhs: Duration)[src]
impl SubAssign<MicroSeconds> for MonotonicTs[src]
fn sub_assign(&mut self, rhs: MicroSeconds)[src]
Auto Trait Implementations
impl RefUnwindSafe for MonotonicTs[src]
impl Send for MonotonicTs[src]
impl Sync for MonotonicTs[src]
impl Unpin for MonotonicTs[src]
impl UnwindSafe for MonotonicTs[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,