pub struct AttachBound { /* private fields */ }Expand description
Canonical successful credential-attach receipt.
Implementations§
Source§impl AttachBound
impl AttachBound
Sourcepub const fn ordinary(
conversation_id: ConversationId,
token: AttachAttemptToken,
participant_id: ParticipantId,
request_generation: Generation,
attach_secret: AttachSecret,
origin_binding_epoch: BindingEpoch,
persisted_cursor: DeliverySeq,
receipt_expires_at: u128,
provenance_expires_at: u128,
) -> Option<Self>
pub const fn ordinary( conversation_id: ConversationId, token: AttachAttemptToken, participant_id: ParticipantId, request_generation: Generation, attach_secret: AttachSecret, origin_binding_epoch: BindingEpoch, persisted_cursor: DeliverySeq, receipt_expires_at: u128, provenance_expires_at: u128, ) -> Option<Self>
Constructs an ordinary attach receipt.
Returns None unless the origin epoch carries the exact checked
successor of request_generation. Ordinary attach structurally records
no accepted marker and preserves the supplied cursor.
Sourcepub const fn fenced(
conversation_id: ConversationId,
token: AttachAttemptToken,
participant_id: ParticipantId,
request_generation: Generation,
attach_secret: AttachSecret,
origin_binding_epoch: BindingEpoch,
accepted_marker_delivery_seq: DeliverySeq,
receipt_expires_at: u128,
provenance_expires_at: u128,
) -> Option<Self>
pub const fn fenced( conversation_id: ConversationId, token: AttachAttemptToken, participant_id: ParticipantId, request_generation: Generation, attach_secret: AttachSecret, origin_binding_epoch: BindingEpoch, accepted_marker_delivery_seq: DeliverySeq, receipt_expires_at: u128, provenance_expires_at: u128, ) -> Option<Self>
Constructs a fenced-recovery attach receipt.
Returns None unless the origin epoch carries the exact checked
successor of request_generation. The accepted marker is also the
resulting persisted cursor by construction.
Sourcepub const fn conversation_id(&self) -> ConversationId
pub const fn conversation_id(&self) -> ConversationId
Conversation from the request.
Sourcepub const fn token(&self) -> AttachAttemptToken
pub const fn token(&self) -> AttachAttemptToken
Attach token echoed as the result token.
Sourcepub const fn participant_id(&self) -> ParticipantId
pub const fn participant_id(&self) -> ParticipantId
Participant from the request.
Sourcepub const fn request_generation(&self) -> Generation
pub const fn request_generation(&self) -> Generation
Originally presented generation.
Sourcepub const fn capability_generation(&self) -> Generation
pub const fn capability_generation(&self) -> Generation
Exact successor capability generation.
Sourcepub const fn attach_secret(&self) -> AttachSecret
pub const fn attach_secret(&self) -> AttachSecret
Newly minted attach secret.
Sourcepub const fn origin_binding_epoch(&self) -> BindingEpoch
pub const fn origin_binding_epoch(&self) -> BindingEpoch
Origin binding epoch carrying the result generation.
Sourcepub const fn persisted_cursor(&self) -> DeliverySeq
pub const fn persisted_cursor(&self) -> DeliverySeq
Persisted participant cursor.
Sourcepub const fn accepted_marker_delivery_seq(&self) -> Option<DeliverySeq>
pub const fn accepted_marker_delivery_seq(&self) -> Option<DeliverySeq>
Marker accepted atomically by recovery, if this was the fenced path.
Sourcepub const fn receipt_expires_at(&self) -> u128
pub const fn receipt_expires_at(&self) -> u128
Receipt deadline.
Sourcepub const fn provenance_expires_at(&self) -> u128
pub const fn provenance_expires_at(&self) -> u128
Provenance deadline.
Trait Implementations§
Source§impl Clone for AttachBound
impl Clone for AttachBound
Source§fn clone(&self) -> AttachBound
fn clone(&self) -> AttachBound
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more