Struct dittolive_ditto::store::timeseries::DittoTimestamp
source · pub struct DittoTimestamp {
pub epoch_sec: u64,
pub nanos: u32,
}
Expand description
Timestamp key for an Event in a Timeseries.
Fields§
§epoch_sec: u64
Time reference for the timestamp.
nanos: u32
Offset of the timestamp in nanoseconds.
Implementations§
source§impl DittoTimestamp
impl DittoTimestamp
sourcepub fn epoch_bytes(&self) -> [u8; 8]
pub fn epoch_bytes(&self) -> [u8; 8]
Return the epoch bytes in big endian.
sourcepub fn nanoseconds(&self) -> u32
pub fn nanoseconds(&self) -> u32
Return the timestamp offset in nanoseconds.
Trait Implementations§
source§impl Debug for DittoTimestamp
impl Debug for DittoTimestamp
Auto Trait Implementations§
impl RefUnwindSafe for DittoTimestamp
impl Send for DittoTimestamp
impl Sync for DittoTimestamp
impl Unpin for DittoTimestamp
impl UnwindSafe for DittoTimestamp
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