pub struct AttachedOperation { /* private fields */ }Expand description
Durable facts of one committed credential attach, as recorded by the shell.
The only public producer consumes the crate’s own attach commit
(AttachCommit carries private fields, so only super::commit_attach
mints it), so an enrollment’s generation-one record cannot be relabeled as
an attach fact.
Implementations§
Source§impl AttachedOperation
impl AttachedOperation
Sourcepub const fn new<F, V>(commit: &AttachCommit<F, V>) -> Self
pub const fn new<F, V>(commit: &AttachCommit<F, V>) -> Self
Creates the attach event body from the attach commit itself.
The producer consumes the whole sealed commit rather than the shared
Attached record, so an enrollment commit cannot be relabeled as a
credential-attach fact:
use liminal_protocol::lifecycle::{AttachedOperation, EnrollmentCommit};
fn relabel(commit: &EnrollmentCommit<[u8; 4]>) -> AttachedOperation {
AttachedOperation::new(commit)
}Sourcepub const fn conversation_id(self) -> ConversationId
pub const fn conversation_id(self) -> ConversationId
Returns the conversation whose participant attached.
Sourcepub const fn participant_id(self) -> ParticipantId
pub const fn participant_id(self) -> ParticipantId
Returns the permanent participant identifier/index.
Sourcepub const fn binding_epoch(self) -> BindingEpoch
pub const fn binding_epoch(self) -> BindingEpoch
Returns the newly committed authoritative binding epoch.
Sourcepub const fn attached_transaction_order(self) -> TransactionOrder
pub const fn attached_transaction_order(self) -> TransactionOrder
Returns the Attached record’s immutable transaction-order major.
Sourcepub const fn attached_delivery_seq(self) -> DeliverySeq
pub const fn attached_delivery_seq(self) -> DeliverySeq
Returns the Attached record’s committed delivery sequence.
Trait Implementations§
Source§impl Clone for AttachedOperation
impl Clone for AttachedOperation
Source§fn clone(&self) -> AttachedOperation
fn clone(&self) -> AttachedOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more