docs/generated/contracts.mdgenerated from code
Reference · 1 min read
actor-id
Contracts: actor-id.
Read as
Source: crates/lvcs-runtime/src/lib.rs.
1/// Identifies one actor incarnation in the local journal (discussion:owner/63).2///3/// Journal-only: the journal never leaves the node, so `key` may be a4/// document path. Never use it as a telemetry attribute.5#[derive(Debug, Clone, PartialEq, Eq, Hash)]6pub struct ActorId {7 /// The machine's `actor_kind` value.8 pub kind: &'static str,9 /// Instance key within the kind: the document address for `document`,10 /// the tree key (`main` or `main/<peer id>`) for `tree_file`,11 /// and `""` for a kind12 /// with one actor per daemon.13 pub key: String,14 /// Starts at 0 and increases each time the shell spawns this15 /// `(kind, key)` again. Replay builds a fresh actor per incarnation: a16 /// document from its saves at the first entry's `state_before` heads; a17 /// router or tree by replaying every earlier18 /// incarnation's entries.19 pub incarnation: u64,20}