[−][src]Struct libpulse_binding::time::UnixTs
A Unix timestamp.
Methods
impl UnixTs[src]
pub fn now() -> Self[src]
Gets the current ‘time of day’.
pub fn diff(a: &Self, b: &Self) -> MicroSeconds[src]
Calculates the difference between the two specified timestamps.
pub fn age(&self) -> MicroSeconds[src]
Gets the time difference between now and self.
pub fn checked_add(self, other: MicroSeconds) -> Option<Self>[src]
pub fn checked_sub(self, other: MicroSeconds) -> Option<Self>[src]
Trait Implementations
impl Add<MicroSeconds> for UnixTs[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, other: MicroSeconds) -> Self[src]
impl AddAssign<MicroSeconds> for UnixTs[src]
fn add_assign(&mut self, rhs: MicroSeconds)[src]
impl Clone for UnixTs[src]
impl Copy for UnixTs[src]
impl Debug for UnixTs[src]
impl Display for UnixTs[src]
impl Eq for UnixTs[src]
impl Ord for UnixTs[src]
fn cmp(&self, other: &UnixTs) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> Self1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<UnixTs> for UnixTs[src]
impl PartialOrd<UnixTs> for UnixTs[src]
fn partial_cmp(&self, other: &UnixTs) -> Option<Ordering>[src]
fn lt(&self, other: &UnixTs) -> bool[src]
fn le(&self, other: &UnixTs) -> bool[src]
fn gt(&self, other: &UnixTs) -> bool[src]
fn ge(&self, other: &UnixTs) -> bool[src]
impl StructuralEq for UnixTs[src]
impl StructuralPartialEq for UnixTs[src]
impl Sub<MicroSeconds> for UnixTs[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, other: MicroSeconds) -> Self[src]
impl SubAssign<MicroSeconds> for UnixTs[src]
fn sub_assign(&mut self, rhs: MicroSeconds)[src]
Auto Trait Implementations
impl RefUnwindSafe for UnixTs
impl Send for UnixTs
impl Sync for UnixTs
impl Unpin for UnixTs
impl UnwindSafe for UnixTs
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,
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.
fn to_owned(&self) -> T[src]
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.
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>,