pub struct NodeAttemptStart { /* private fields */ }Expand description
Immutable proof that one physical node execution was durably admitted.
attempt_id identifies this node execution and is distinct from the
worker-run attempt carried by fence. A production store must claim it in
the run-wide physical-attempt namespace and repeat the exact live fence on
the event and start-row inserts.
Implementations§
Source§impl NodeAttemptStart
impl NodeAttemptStart
Sourcepub fn new(
activation: NodeActivation,
attempt_id: AttemptId,
fence: RunFence,
journal_head: JournalHead,
) -> Result<Self, NodeAttemptError>
pub fn new( activation: NodeActivation, attempt_id: AttemptId, fence: RunFence, journal_head: JournalHead, ) -> Result<Self, NodeAttemptError>
Constructs an integrity-bound durable start after its event commits.
§Errors
Returns NodeAttemptError for crossed scope, invalid ordering,
worker/node attempt identity reuse, or integrity failure.
Sourcepub fn restore(
activation: NodeActivation,
activation_digest: Digest,
attempt_id: AttemptId,
fence: RunFence,
journal_head: JournalHead,
digest: Digest,
) -> Result<Self, NodeAttemptError>
pub fn restore( activation: NodeActivation, activation_digest: Digest, attempt_id: AttemptId, fence: RunFence, journal_head: JournalHead, digest: Digest, ) -> Result<Self, NodeAttemptError>
Restores and verifies a durable start record.
§Errors
Returns NodeAttemptError when any invariant or checksum differs.
Sourcepub const fn activation(&self) -> &NodeActivation
pub const fn activation(&self) -> &NodeActivation
Returns the exact logical activation.
Sourcepub const fn activation_digest(&self) -> Digest
pub const fn activation_digest(&self) -> Digest
Returns the stable logical-activation fingerprint.
Sourcepub const fn attempt_id(&self) -> AttemptId
pub const fn attempt_id(&self) -> AttemptId
Returns the unique physical node-attempt identity.
Sourcepub const fn journal_head(&self) -> &JournalHead
pub const fn journal_head(&self) -> &JournalHead
Returns the exact start journal anchor.
Sourcepub fn head(&self) -> NodeAttemptStartHead
pub fn head(&self) -> NodeAttemptStartHead
Returns a compact exact reference used by completion records.
Trait Implementations§
Source§impl Clone for NodeAttemptStart
impl Clone for NodeAttemptStart
Source§impl Debug for NodeAttemptStart
impl Debug for NodeAttemptStart
Source§impl<'de> Deserialize<'de> for NodeAttemptStart
impl<'de> Deserialize<'de> for NodeAttemptStart
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>,
impl Eq for NodeAttemptStart
Source§impl JsonSchema for NodeAttemptStart
impl JsonSchema for NodeAttemptStart
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more