Struct libpulse_binding::time::UnixTs [−][src]
pub struct UnixTs(_);
A Unix timestamp
Methods
impl UnixTs[src]
impl UnixTspub fn now() -> Self[src]
pub fn now() -> SelfCurrent 'time of day'
pub fn diff(a: &Self, b: &Self) -> MicroSeconds[src]
pub fn diff(a: &Self, b: &Self) -> MicroSecondsCalculate the difference between the two specified timestamps.
pub fn age(&self) -> MicroSeconds[src]
pub fn age(&self) -> MicroSecondsReturn 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 UnixTsimpl Clone for UnixTs[src]
impl Clone for UnixTsfn clone(&self) -> UnixTs[src]
fn clone(&self) -> UnixTsReturns 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 UnixTsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for UnixTs[src]
impl Eq for UnixTsimpl PartialEq for UnixTs[src]
impl PartialEq for UnixTsfn eq(&self, other: &UnixTs) -> bool[src]
fn eq(&self, other: &UnixTs) -> boolThis 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) -> boolThis method tests for !=.
impl Ord for UnixTs[src]
impl Ord for UnixTsfn cmp(&self, other: &UnixTs) -> Ordering[src]
fn cmp(&self, other: &UnixTs) -> 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 UnixTs[src]
impl PartialOrd for UnixTsfn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis 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 UnixTstype 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 UnixTs[src]
impl AddAssign<MicroSeconds> for UnixTsfn 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 UnixTstype 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 UnixTs[src]
impl SubAssign<MicroSeconds> for UnixTsfn 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