journal
Source: crates/lvcs/src/runtime/mod.rs.
/// Milliseconds since the Unix epoch, read by the shell, never by an
/// action. Audit only: replay ignores it.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub(crate) struct LocalTs(pub(crate) u64);
/// One journal entry (decision 286): the event a machine handled, the sml
/// logger trace of handling it, and its content check `C` around it (`()`
/// but for documents, decision 32).
#[derive(Debug, Clone, PartialEq, Eq)]
pub(crate) struct JournalEntry<E, C = ()> {
/// Which actor handled the event.
pub(crate) actor: ActorId,
/// The event, as delivered: the machine's generated event, or a
/// document's `DocEvent`.
pub(crate) event: E,
/// What `process_event` did, in order.
pub(crate) trace: Vec<Line>,
/// The content check before the event.
pub(crate) state_before: C,
/// The content check after the event ran to completion.
pub(crate) state_after: C,
/// When the driver or the inline owner handled it.
pub(crate) local_ts: LocalTs,
}