pub struct FencedAttachCommit { /* private fields */ }Expand description
Opaque proof that an exact marker-fenced attach committed.
Only DetachedCredentialRecovery::fenced_attach constructs this value.
Ordinary attach therefore cannot fabricate marker acceptance or advance a
cursor merely by presenting a marker sequence.
Implementations§
Source§impl FencedAttachCommit
impl FencedAttachCommit
Sourcepub const fn conversation_id(self) -> ConversationId
pub const fn conversation_id(self) -> ConversationId
Returns the conversation inherited from the consumed recovery edge.
Sourcepub const fn participant_id(self) -> ParticipantId
pub const fn participant_id(self) -> ParticipantId
Returns the participant whose fenced recovery committed.
Sourcepub const fn marker_delivery_seq(self) -> DeliverySeq
pub const fn marker_delivery_seq(self) -> DeliverySeq
Returns the exact delivered marker accepted by the commit.
Sourcepub const fn prior_binding_epoch(self) -> BindingEpoch
pub const fn prior_binding_epoch(self) -> BindingEpoch
Returns the exact dead binding epoch that durably received the marker.
Sourcepub const fn new_binding_epoch(self) -> BindingEpoch
pub const fn new_binding_epoch(self) -> BindingEpoch
Returns the exact newly committed authoritative binding epoch.
Sourcepub const fn next_state(self) -> ClosureState
pub const fn next_state(self) -> ClosureState
Returns the measured clear, observer-projection, or compaction successor.
Sourcepub fn recovered_binding_fate(
self,
event: Event,
) -> Result<RecoveredBindingFate, ClosureState>
pub fn recovered_binding_fate( self, event: Event, ) -> Result<RecoveredBindingFate, ClosureState>
Validates the exact fate of this commit’s recovered binding epoch.
The returned authority retains both the fenced-attach provenance and its
exact nonzero-debt OP/PC successor. It must be consumed by that stored
edge’s recovered-fate transition, so a fate that precedes storage
completion cannot lose the required DetachedCursorRelease suffix.
§Errors
Returns the unchanged post-attach state unless the event names this participant and the exact newly committed binding epoch, or when the fenced attach had already cleared debt.
Trait Implementations§
Source§impl Clone for FencedAttachCommit
impl Clone for FencedAttachCommit
Source§fn clone(&self) -> FencedAttachCommit
fn clone(&self) -> FencedAttachCommit
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more