pub struct DetachedCredentialRecovery { /* private fields */ }Expand description
Detached fenced credential-recovery witness.
This state is produced only by the exact binding fate of a marker-backed cursor witness; callers cannot fabricate a durable delivery fact.
Implementations§
Source§impl DetachedCredentialRecovery
impl DetachedCredentialRecovery
Sourcepub const fn conversation_id(self) -> ConversationId
pub const fn conversation_id(self) -> ConversationId
Returns the conversation inherited from the marker-backed cursor witness.
Sourcepub const fn participant_id(self) -> ParticipantId
pub const fn participant_id(self) -> ParticipantId
Returns the detached participant.
Sourcepub const fn marker_delivery_seq(self) -> DeliverySeq
pub const fn marker_delivery_seq(self) -> DeliverySeq
Returns the delivered recovery marker.
Sourcepub const fn prior_binding_epoch(self) -> BindingEpoch
pub const fn prior_binding_epoch(self) -> BindingEpoch
Returns the prior authoritative epoch.
Source§impl DetachedCredentialRecovery
impl DetachedCredentialRecovery
Sourcepub const fn validate_leave_claim(
&self,
participant_id: ParticipantId,
actual_charge: ResourceVector,
remaining_k: ResourceVector,
exit_claims: u64,
) -> Option<KClaimBackedDetachedLeave>
pub const fn validate_leave_claim( &self, participant_id: ParticipantId, actual_charge: ResourceVector, remaining_k: ResourceVector, exit_claims: u64, ) -> Option<KClaimBackedDetachedLeave>
Validates exact-current K and exit claims for detached Leave.
Sourcepub fn detached_leave(
self,
debt: ClosureDebt,
event: Event,
evidence: KClaimBackedDetachedLeave,
successor: DebtCompletion,
) -> Result<ClosureState, ClosureState>
pub fn detached_leave( self, debt: ClosureDebt, event: Event, evidence: KClaimBackedDetachedLeave, successor: DebtCompletion, ) -> Result<ClosureState, ClosureState>
Consumes exact K-backed detached Leave and installs only clear/OP/PC.
§Errors
Returns the unchanged owed state unless the Leave and private claim authority are bound to this exact recovery edge.
Sourcepub const fn ordinary_attach_refusal(self) -> DetachedAttachRefusal
pub const fn ordinary_attach_refusal(self) -> DetachedAttachRefusal
Ordinary non-fenced attach is refused without mutation.
Sourcepub const fn marker_attach_refusal(
self,
presented_marker: DeliverySeq,
) -> Option<DetachedAttachRefusal>
pub const fn marker_attach_refusal( self, presented_marker: DeliverySeq, ) -> Option<DetachedAttachRefusal>
An explicit marker is eligible only when it is the exact recovery marker.
Authority supersession before commit preserves DCR and is stale.
Applies only an unrelated participant event, preserving this edge while debt remains or clearing it with debt.
§Errors
Returns the unchanged owed state for a non-participant event or an event owned by this detached participant.
Trait Implementations§
Source§impl Clone for DetachedCredentialRecovery
impl Clone for DetachedCredentialRecovery
Source§fn clone(&self) -> DetachedCredentialRecovery
fn clone(&self) -> DetachedCredentialRecovery
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more