pub struct CursorProgressContinuous { /* private fields */ }Expand description
Continuous cursor-progress witness with no delivered marker.
This witness deliberately has no public constructor. A caller outside this
crate cannot turn raw participant/epoch values into executable binding-fate
authority; recovered-epoch fate must instead originate from
FencedAttachCommit::recovered_binding_fate.
use liminal_protocol::{
lifecycle::CursorProgressContinuous,
wire::BindingEpoch,
};
fn fabricate(epoch: BindingEpoch) {
let _ = CursorProgressContinuous::new(7, epoch, 11);
}Implementations§
Source§impl CursorProgressContinuous
impl CursorProgressContinuous
Sourcepub const fn participant_id(self) -> ParticipantId
pub const fn participant_id(self) -> ParticipantId
Returns the participant whose cursor is required.
Sourcepub const fn binding_epoch(self) -> BindingEpoch
pub const fn binding_epoch(self) -> BindingEpoch
Returns the exact binding epoch.
Sourcepub const fn through_seq(self) -> DeliverySeq
pub const fn through_seq(self) -> DeliverySeq
Returns the required cumulative boundary.
Sourcepub const fn storage_description(
self,
conversation_id: ConversationId,
) -> StoredEdgeRestore
pub const fn storage_description( self, conversation_id: ConversationId, ) -> StoredEdgeRestore
Describes this witness as the capsule that restores it.
The capsule states an ordinary-attach authority the witness does not
hold, but restore accepts no authority other than the one this witness
implies: restore_continuous requires the authority’s participant,
epoch and cursor to equal the witness’s own three fields, so every
field of the authority except its conversation is read off the witness.
The conversation is the one being described, which is why it is an
argument and not provenance – the same reason the marker delivery’s
capsule omits it.