Struct libpulse_binding::time::UnixTs
source ·
[−]#[repr(transparent)]pub struct UnixTs(_);
Expand description
A Unix timestamp.
Implementations
Calculates the difference between the two specified timestamps.
Gets the time difference between now and self.
Checked integer addition. Computes self + rhs
, returning None
if overflow occurred,
using the inner integer’s checked_add()
method.
Checked integer subtraction. Computes self - rhs
, returning None
if overflow occurred,
using the inner integer’s checked_sub()
method.
Trait Implementations
Performs the +=
operation. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for UnixTs
impl UnwindSafe for UnixTs
Blanket Implementations
Mutably borrows from an owned value. Read more