docs/generated/contracts.mdgenerated from code

Reference · 1 min read

documents

Contracts: documents.

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

ruston main
1/// A document actor's [`DocPolicies`]: every step of its kind's machine2/// goes to a journaling close as the [`DocEvent`] its owner delivered, or3/// only hands its outputs on.4#[derive(Clone)]5pub enum Documents {6    /// Journaled: each step goes to the close as the delivered event.7    Journaled(Close<DocEvent, DocOutput, DocFingerprint>),8    /// No journal records it: each step's outputs, and whether the9    /// machine stopped, go to the shell.10    Unjournaled(Shell),11}1213/// Where an unjournaled document's outputs go.14pub(crate) type Shell = Arc<dyn Fn(Vec<DocOutput>, bool) + Send + Sync>;