docs/generated/contracts.mdgenerated from code

Reference · 1 min read

journal

Contracts: journal.

Source: crates/lvcs-runtime/src/lib.rs.

ruston main
1/// Milliseconds since the Unix epoch, read by the shell, never by an2/// action. Audit only: replay ignores it.3#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]4pub struct LocalTs(pub u64);56/// One journal entry (discussion:owner/286): the event a machine handled, the sml7/// logger trace of handling it, and its content check `C` around it (`()`8/// but for documents, discussion:owner/32).9#[derive(Debug, Clone, PartialEq, Eq)]10pub struct JournalEntry<E, C = ()> {11    /// Which actor handled the event.12    pub actor: ActorId,13    /// The event, as delivered: the machine's generated event, or a14    /// document's `DocEvent`.15    pub event: E,16    /// What `process_event` did, in order.17    pub trace: Vec<Line>,18    /// The content check before the event.19    pub state_before: C,20    /// The content check after the event ran to completion.21    pub state_after: C,22    /// When its owner dispatched it.23    pub local_ts: LocalTs,24    /// The build that recorded it ([`build`]); `0` when unknown, as for an25    /// entry an older build wrote (discussion:owner/783).26    pub build: u64,27}