Struct libpulse_binding::time::UnixTs [−][src]
pub struct UnixTs(_);
A Unix timestamp
Methods
impl UnixTs
[src]
impl UnixTs
pub fn now() -> Self
[src]
pub fn now() -> Self
Current 'time of day'
pub fn diff(a: &Self, b: &Self) -> MicroSeconds
[src]
pub fn diff(a: &Self, b: &Self) -> MicroSeconds
Calculate the difference between the two specified timestamps.
pub fn age(&self) -> MicroSeconds
[src]
pub fn age(&self) -> MicroSeconds
Return the time difference between now and self
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 UnixTs
[src]
impl Copy for UnixTs
impl Clone for UnixTs
[src]
impl Clone for UnixTs
fn clone(&self) -> UnixTs
[src]
fn clone(&self) -> UnixTs
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 UnixTs
[src]
impl Debug for UnixTs
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 Eq for UnixTs
[src]
impl Eq for UnixTs
impl PartialEq for UnixTs
[src]
impl PartialEq for UnixTs
fn eq(&self, other: &UnixTs) -> bool
[src]
fn eq(&self, other: &UnixTs) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UnixTs) -> bool
[src]
fn ne(&self, other: &UnixTs) -> bool
This method tests for !=
.
impl Ord for UnixTs
[src]
impl Ord for UnixTs
fn cmp(&self, other: &UnixTs) -> Ordering
[src]
fn cmp(&self, other: &UnixTs) -> 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 UnixTs
[src]
impl PartialOrd for UnixTs
fn partial_cmp(&self, other: &UnixTs) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &UnixTs) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &UnixTs) -> bool
[src]
fn lt(&self, other: &UnixTs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &UnixTs) -> bool
[src]
fn le(&self, other: &UnixTs) -> 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: &UnixTs) -> bool
[src]
fn gt(&self, other: &UnixTs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &UnixTs) -> bool
[src]
fn ge(&self, other: &UnixTs) -> 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 UnixTs
[src]
impl Add<MicroSeconds> for UnixTs
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 UnixTs
[src]
impl AddAssign<MicroSeconds> for UnixTs
fn add_assign(&mut self, rhs: MicroSeconds)
[src]
fn add_assign(&mut self, rhs: MicroSeconds)
Performs the +=
operation.
impl Sub<MicroSeconds> for UnixTs
[src]
impl Sub<MicroSeconds> for UnixTs
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 UnixTs
[src]
impl SubAssign<MicroSeconds> for UnixTs
fn sub_assign(&mut self, rhs: MicroSeconds)
[src]
fn sub_assign(&mut self, rhs: MicroSeconds)
Performs the -=
operation.
impl Display for UnixTs
[src]
impl Display for UnixTs