Struct aliri_clock::UnixTime [−][src]
#[repr(transparent)]pub struct UnixTime(pub u64);
Expand description
Unix time
Unix time as represented by the number of seconds elapsed since the beginning of the Unix epoch on 1970/01/01 at 00:00:00 UTC.
Trait Implementations
impl Add<DurationSecs> for UnixTime
[src]
impl Add<DurationSecs> for UnixTime
[src]impl AddAssign<DurationSecs> for UnixTime
[src]
impl AddAssign<DurationSecs> for UnixTime
[src]fn add_assign(&mut self, other: DurationSecs)
[src]
fn add_assign(&mut self, other: DurationSecs)
[src]Performs the +=
operation. Read more
impl<'de> Deserialize<'de> for UnixTime
[src]
impl<'de> Deserialize<'de> for UnixTime
[src]serde
only.fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]Deserialize this value from the given Serde deserializer. Read more
impl From<SystemTime> for UnixTime
[src]
impl From<SystemTime> for UnixTime
[src]fn from(t: SystemTime) -> Self
[src]
fn from(t: SystemTime) -> Self
[src]Performs the conversion.
impl Ord for UnixTime
[src]
impl Ord for UnixTime
[src]impl PartialOrd<UnixTime> for UnixTime
[src]
impl PartialOrd<UnixTime> for UnixTime
[src]fn partial_cmp(&self, other: &UnixTime) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &UnixTime) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Sub<DurationSecs> for UnixTime
[src]
impl Sub<DurationSecs> for UnixTime
[src]impl SubAssign<DurationSecs> for UnixTime
[src]
impl SubAssign<DurationSecs> for UnixTime
[src]fn sub_assign(&mut self, other: DurationSecs)
[src]
fn sub_assign(&mut self, other: DurationSecs)
[src]Performs the -=
operation. Read more
impl Copy for UnixTime
[src]
impl Eq for UnixTime
[src]
impl StructuralEq for UnixTime
[src]
impl StructuralPartialEq for UnixTime
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnixTime
impl Send for UnixTime
impl Sync for UnixTime
impl Unpin for UnixTime
impl UnwindSafe for UnixTime
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,