pub struct RawTimestamp {
pub nanos: i64,
}Expand description
Raw timestamp value (Unix nanoseconds).
Fields§
§nanos: i64Implementations§
Source§impl RawTimestamp
impl RawTimestamp
pub fn from_unix_nanos(nanos: i64) -> Self
pub fn from_dos(dos_time: u32) -> Self
pub fn saturating_add(self, add_nanos: i64) -> Self
Trait Implementations§
Source§impl Clone for RawTimestamp
impl Clone for RawTimestamp
Source§fn clone(&self) -> RawTimestamp
fn clone(&self) -> RawTimestamp
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 RawTimestamp
impl Debug for RawTimestamp
Source§impl Default for RawTimestamp
impl Default for RawTimestamp
Source§fn default() -> RawTimestamp
fn default() -> RawTimestamp
Returns the “default value” for a type. Read more
Source§impl PartialEq for RawTimestamp
impl PartialEq for RawTimestamp
impl Copy for RawTimestamp
impl Eq for RawTimestamp
impl StructuralPartialEq for RawTimestamp
Auto Trait Implementations§
impl Freeze for RawTimestamp
impl RefUnwindSafe for RawTimestamp
impl Send for RawTimestamp
impl Sync for RawTimestamp
impl Unpin for RawTimestamp
impl UnwindSafe for RawTimestamp
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