Struct questdb::ingress::TimestampNanos
source · [−]pub struct TimestampNanos(_);
Expand description
A i64
timestamp expressed as nanoseconds since the UNIX epoch (UTC).
The number can’t be negative (i.e. can’t be before 1970-01-01 00:00:00).
Examples
use questdb::ingress::TimestampNanos;
let ts = TimestampNanos::new(1659548315647406592)?;
or
use questdb::ingress::TimestampNanos;
use std::convert::TryInto;
let ts: TimestampNanos = std::time::SystemTime::now().try_into()?;
Implementations
Trait Implementations
sourceimpl Clone for TimestampNanos
impl Clone for TimestampNanos
sourcefn clone(&self) -> TimestampNanos
fn clone(&self) -> TimestampNanos
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TimestampNanos
impl Debug for TimestampNanos
sourceimpl TryFrom<SystemTime> for TimestampNanos
impl TryFrom<SystemTime> for TimestampNanos
impl Copy for TimestampNanos
Auto Trait Implementations
impl RefUnwindSafe for TimestampNanos
impl Send for TimestampNanos
impl Sync for TimestampNanos
impl Unpin for TimestampNanos
impl UnwindSafe for TimestampNanos
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more