Struct wildland_corex::dfs::unix_timestamp::UnixTimestamp
source · pub struct UnixTimestamp {
pub sec: u64,
pub nano_sec: u32,
}
Fields§
§sec: u64
Number of seconds that elapsed since the beginning of the UNIX epoch
nano_sec: u32
fraction of a second expressed in nanoseconds
Implementations§
source§impl UnixTimestamp
impl UnixTimestamp
Getter exposed through ffi
pub fn sec(&self) -> u64
pub fn nano_sec(&self) -> u32
pub fn now() -> UnixTimestamp
pub fn from_nanos(nanos: u64) -> UnixTimestamp
Trait Implementations§
source§impl Clone for UnixTimestamp
impl Clone for UnixTimestamp
source§fn clone(&self) -> UnixTimestamp
fn clone(&self) -> UnixTimestamp
Returns a copy 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 UnixTimestamp
impl Debug for UnixTimestamp
source§impl<'de> Deserialize<'de> for UnixTimestamp
impl<'de> Deserialize<'de> for UnixTimestamp
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 From<SystemTime> for UnixTimestamp
impl From<SystemTime> for UnixTimestamp
source§fn from(value: SystemTime) -> Self
fn from(value: SystemTime) -> Self
Converts to this type from the input type.
source§impl PartialEq<UnixTimestamp> for UnixTimestamp
impl PartialEq<UnixTimestamp> for UnixTimestamp
source§fn eq(&self, other: &UnixTimestamp) -> bool
fn eq(&self, other: &UnixTimestamp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UnixTimestamp
impl Serialize for UnixTimestamp
impl Copy for UnixTimestamp
impl Eq for UnixTimestamp
impl StructuralEq for UnixTimestamp
impl StructuralPartialEq for UnixTimestamp
Auto Trait Implementations§
impl RefUnwindSafe for UnixTimestamp
impl Send for UnixTimestamp
impl Sync for UnixTimestamp
impl Unpin for UnixTimestamp
impl UnwindSafe for UnixTimestamp
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.