pub struct ObligationDebtDispatchTransition { /* private fields */ }Expand description
Move-only authority that prevents production from reinstalling a bare frontier after beginning a coupled transition.
Implementations§
Source§impl ObligationDebtDispatchTransition
impl ObligationDebtDispatchTransition
Sourcepub fn complete(
self,
frontier: LiveFrontierOwner,
observer_progress: DeliverySeq,
) -> Result<ObligationDebtDispatchState, ObligationDebtOwnerError>
pub fn complete( self, frontier: LiveFrontierOwner, observer_progress: DeliverySeq, ) -> Result<ObligationDebtDispatchState, ObligationDebtOwnerError>
Completes a coupled transition from the operation’s exact resulting frontier. Clear consumes any old episode; Owed reconciles all tagged participants and surviving facts into one complete episode.
§Errors
Returns ObligationDebtOwnerError if resulting frontier and observer
state cannot form one coherent owner.
Sourcepub fn complete_nonzero_ack<F>(
self,
frontier: LiveFrontierOwner,
commit: NonzeroParticipantAckCommit,
member: &mut LiveMember<F>,
observer_progress: DeliverySeq,
) -> Result<(ObligationDebtDispatchState, AckCommitted), ObligationDebtOwnerError>
pub fn complete_nonzero_ack<F>( self, frontier: LiveFrontierOwner, commit: NonzeroParticipantAckCommit, member: &mut LiveMember<F>, observer_progress: DeliverySeq, ) -> Result<(ObligationDebtDispatchState, AckCommitted), ObligationDebtOwnerError>
Completes one nonzero acknowledgement with the exact episode produced by its sealed commit instead of regenerating cursor facts from frontier scalars. The member, episode, and frontier therefore cross one protocol barrier as the same commit.
§Errors
Returns ObligationDebtOwnerError if the transition did not begin from
Owed, the aggregate commit rejects the member/episode pair, or the exact
resulting episode disagrees with the resulting frontier and closure debt.