#[non_exhaustive]pub enum EventTimestamp {
Epoch(u64),
System(u64),
DeltaEpoch(u64),
DeltaSystem(u64),
None,
}Expand description
The timestamp carried by an EventDataIB. A report carries exactly one of
these (absolute epoch/system, or a delta against the prior event in a
subscription stream); None if the device omitted all
four (tolerated rather than rejected).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Epoch(u64)
Milliseconds since the Unix epoch (EpochTimestamp, tag 3).
System(u64)
Milliseconds since boot (SystemTimestamp, tag 4).
DeltaEpoch(u64)
Delta-epoch against the prior event in the stream (tag 5).
DeltaSystem(u64)
Delta-system against the prior event in the stream (tag 6).
None
No timestamp present.
Trait Implementations§
Source§impl Clone for EventTimestamp
impl Clone for EventTimestamp
Source§fn clone(&self) -> EventTimestamp
fn clone(&self) -> EventTimestamp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EventTimestamp
Source§impl Debug for EventTimestamp
impl Debug for EventTimestamp
impl Eq for EventTimestamp
Source§impl PartialEq for EventTimestamp
impl PartialEq for EventTimestamp
impl StructuralPartialEq for EventTimestamp
Auto Trait Implementations§
impl Freeze for EventTimestamp
impl RefUnwindSafe for EventTimestamp
impl Send for EventTimestamp
impl Sync for EventTimestamp
impl Unpin for EventTimestamp
impl UnsafeUnpin for EventTimestamp
impl UnwindSafe for EventTimestamp
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