pub struct OrdinaryBindingFateRestore {
pub authority: OrdinaryBindingAuthorityRestore,
pub terminal: CommittedBindingTerminalRestore,
pub resulting_floor: DeliverySeq,
}Expand description
Exact ordinary-binding fate provenance for cursor release.
Raw fields are deliberately not independently restorable. The participant’s total snapshot must first prove its unfenced binding origin.
use liminal_protocol::lifecycle::OrdinaryBindingFateRestore;
fn bypass(raw: OrdinaryBindingFateRestore) {
let _ = raw.restore();
}Fields§
Ordinary-attach authority that owned the no-marker cursor.
terminal: CommittedBindingTerminalRestoreExact committed Died terminal for that authority.
resulting_floor: DeliverySeqFloor measured in the binding-fate transaction.
Implementations§
Source§impl OrdinaryBindingFateRestore
impl OrdinaryBindingFateRestore
Sourcepub fn restore_with_origin(
self,
origin: &BindingOrigin,
) -> Result<OrdinaryBindingFate, StorageRestoreError>
pub fn restore_with_origin( self, origin: &BindingOrigin, ) -> Result<OrdinaryBindingFate, StorageRestoreError>
Validates the ordinary attach and exact committed-death provenance.
§Errors
Returns StorageRestoreError::StoredEdgeProvenance unless the terminal
is a Died terminal for the exact participant, conversation, and epoch.
Source§impl OrdinaryBindingFateRestore
impl OrdinaryBindingFateRestore
Sourcepub fn encode_checkpoint(&self) -> Vec<u8> ⓘ
pub fn encode_checkpoint(&self) -> Vec<u8> ⓘ
Borrows the complete ordinary fate provenance into canonical bytes.
Sourcepub fn restore_checkpoint(
body: &[u8],
origin: &BindingOrigin,
) -> Result<OrdinaryBindingFate, OwnerCheckpointRestoreError>
pub fn restore_checkpoint( body: &[u8], origin: &BindingOrigin, ) -> Result<OrdinaryBindingFate, OwnerCheckpointRestoreError>
Decodes canonical bytes and checks their exact unfenced origin and death.
§Errors
Refuses framing, trailing bytes, or native origin and terminal mismatches.