pub struct EnrolledOperation { /* private fields */ }Expand description
Durable facts of one committed enrollment, as recorded by the shell.
The only public producer consumes the crate’s own enrollment commit
(EnrollmentCommit carries a private field, so only
super::commit_enrollment mints it), so an event can exist only
downstream of a real enrollment commit and can never be minted from an
attach commit’s record.
Implementations§
Source§impl EnrolledOperation
impl EnrolledOperation
Sourcepub const fn new<F>(commit: &EnrollmentCommit<F>) -> Self
pub const fn new<F>(commit: &EnrollmentCommit<F>) -> Self
Creates the enrollment event body from the enrollment commit itself.
super::commit_enrollment refuses any non-generation-one origin
epoch before constructing EnrollmentCommit, so the canonical
generation-one body invariant re-validated on decode holds for every
value this producer can observe.
Sourcepub const fn conversation_id(self) -> ConversationId
pub const fn conversation_id(self) -> ConversationId
Returns the conversation that enrolled the participant.
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 generation-one origin 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 EnrolledOperation
impl Clone for EnrolledOperation
Source§fn clone(&self) -> EnrolledOperation
fn clone(&self) -> EnrolledOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more