pub struct TimestampUs(pub u64);
Tuple Fields§
§0: u64
Implementations§
Source§impl TimestampUs
impl TimestampUs
pub fn now() -> Self
pub fn saturating_us_since(self, other: Self) -> u64
Trait Implementations§
Source§impl Clone for TimestampUs
impl Clone for TimestampUs
Source§fn clone(&self) -> TimestampUs
fn clone(&self) -> TimestampUs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TimestampUs
impl Debug for TimestampUs
Source§impl<'de> Deserialize<'de> for TimestampUs
impl<'de> Deserialize<'de> for TimestampUs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TimestampUs
impl Hash for TimestampUs
Source§impl Ord for TimestampUs
impl Ord for TimestampUs
Source§fn cmp(&self, other: &TimestampUs) -> Ordering
fn cmp(&self, other: &TimestampUs) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimestampUs
impl PartialEq for TimestampUs
Source§impl PartialOrd for TimestampUs
impl PartialOrd for TimestampUs
Source§impl Serialize for TimestampUs
impl Serialize for TimestampUs
Source§impl TryFrom<&Timestamp> for TimestampUs
impl TryFrom<&Timestamp> for TimestampUs
impl Copy for TimestampUs
impl Eq for TimestampUs
impl StructuralPartialEq for TimestampUs
Auto Trait Implementations§
impl Freeze for TimestampUs
impl RefUnwindSafe for TimestampUs
impl Send for TimestampUs
impl Sync for TimestampUs
impl Unpin for TimestampUs
impl UnwindSafe for TimestampUs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more