pub struct TraceEvent {
pub seq: u64,
pub at: String,
pub session: String,
pub turn: Option<u64>,
pub body: EventBody,
}Expand description
One journal line: a dense sequence number, a timestamp in the protocol’s
RFC 3339 UTC profile (SPEC.md §F4), the session it belongs to, the open
turn (when inside one), and the event body flattened alongside.
Fields§
§seq: u64Dense and strictly increasing from 1, continuing across a crash-resume. Density is what makes “this journal is complete” checkable at all.
at: StringRFC 3339 UTC timestamp, same profile as frame temporal fields.
session: StringThe session this recording belongs to. One journal records one session, including its resumes.
turn: Option<u64>The open turn’s number. Present on turn_start/turn_end (naming the
turn they bound) and on every event inside a turn; absent between
turns.
body: EventBodyTrait Implementations§
Source§impl Clone for TraceEvent
impl Clone for TraceEvent
Source§fn clone(&self) -> TraceEvent
fn clone(&self) -> TraceEvent
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 moreSource§impl Debug for TraceEvent
impl Debug for TraceEvent
Source§impl<'de> Deserialize<'de> for TraceEvent
impl<'de> Deserialize<'de> for TraceEvent
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
Source§impl PartialEq for TraceEvent
impl PartialEq for TraceEvent
Source§impl Serialize for TraceEvent
impl Serialize for TraceEvent
impl StructuralPartialEq for TraceEvent
Auto Trait Implementations§
impl Freeze for TraceEvent
impl RefUnwindSafe for TraceEvent
impl Send for TraceEvent
impl Sync for TraceEvent
impl Unpin for TraceEvent
impl UnsafeUnpin for TraceEvent
impl UnwindSafe for TraceEvent
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