#[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.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Add<DurationSecs> for UnixTime
impl Add<DurationSecs> for UnixTime
Source§impl AddAssign<DurationSecs> for UnixTime
impl AddAssign<DurationSecs> for UnixTime
Source§fn add_assign(&mut self, other: DurationSecs)
fn add_assign(&mut self, other: DurationSecs)
Performs the
+= operation. Read moreSource§impl<'de> Deserialize<'de> for UnixTime
Available on crate feature serde only.
impl<'de> Deserialize<'de> for UnixTime
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SystemTime> for UnixTime
impl From<SystemTime> for UnixTime
Source§fn from(t: SystemTime) -> Self
fn from(t: SystemTime) -> Self
Converts to this type from the input type.
Source§impl From<UnixTime> for SystemTime
impl From<UnixTime> for SystemTime
Source§impl Ord for UnixTime
impl Ord for UnixTime
Source§impl PartialOrd for UnixTime
impl PartialOrd for UnixTime
Source§impl Sub<DurationSecs> for UnixTime
impl Sub<DurationSecs> for UnixTime
Source§impl SubAssign<DurationSecs> for UnixTime
impl SubAssign<DurationSecs> for UnixTime
Source§fn sub_assign(&mut self, other: DurationSecs)
fn sub_assign(&mut self, other: DurationSecs)
Performs the
-= operation. Read moreimpl Copy for UnixTime
impl Eq for UnixTime
impl StructuralPartialEq for UnixTime
Auto Trait Implementations§
impl Freeze for UnixTime
impl RefUnwindSafe for UnixTime
impl Send for UnixTime
impl Sync for UnixTime
impl Unpin for UnixTime
impl UnwindSafe for UnixTime
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