Skip to main content

V2CommittedClaimStore

Trait V2CommittedClaimStore 

Source
pub trait V2CommittedClaimStore {
    // Required method
    fn load_v2_committed_claim(
        &self,
        ctx: &V2Context,
        claim_id: &str,
    ) -> Result<V2CommittedClaim, V2StoreError>;
}
Expand description

Go V2CommittedClaimStore: loads a terminal claim’s persisted record for resumption (SPEC-v2 §7.11). load_v2_committed_claim answers claim_not_found for a claim the store does not hold, claim_lease_live for a claim still evaluating under a live lease, and claim_lease_lost for a claim still evaluating after its lease expired (lease-expiry recovery runs first).

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl V2CommittedClaimStore for RateAtFinalizationStore

Source§

impl V2CommittedClaimStore for Store

Returns a terminal claim exactly as its terminal commit persisted it, for resumption after the handoff was lost (SPEC-v2 §7.11). A claim still evaluating is claim_lease_live while its lease is live and claim_lease_lost after, when lease-expiry recovery must run first.