pub struct Event {
pub v: u32,
pub seq: u64,
pub ms: u64,
pub kind: EventKind,
}Expand description
One NDJSON line: the envelope every event shares, with the event-specific payload flattened beside it. Field order is fixed by this struct, so a given event serializes byte-identically everywhere.
Fields§
§v: u32Line-format version (EVENTS_VERSION).
seq: u64Per-run monotonic sequence number; equals physical line order.
ms: u64Engine-elapsed milliseconds (virtual-clock-safe; never wall time).
kind: EventKindWhat happened, tagged as "event" in the JSON.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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