pub enum ParticipantRecord {
OrdinaryRecord {
sender_participant_id: ParticipantId,
payload: Vec<u8>,
},
Attached {
affected_participant_id: ParticipantId,
binding_epoch: BindingEpoch,
},
Detached {
affected_participant_id: ParticipantId,
binding_epoch: BindingEpoch,
cause: DetachedCause,
},
Died {
affected_participant_id: ParticipantId,
binding_epoch: BindingEpoch,
cause: DiedCause,
},
Left {
affected_participant_id: ParticipantId,
ended_binding_epoch: Option<BindingEpoch>,
},
HistoryCompacted {
affected_participant_id: ParticipantId,
abandoned_after: DeliverySeq,
abandoned_through: DeliverySeq,
physical_floor_at_decision: DeliverySeq,
},
}Expand description
Exact record-kind body carried by ParticipantDelivery.
Variants§
OrdinaryRecord
Ordinary application record.
Fields
§
sender_participant_id: ParticipantIdVerified sender participant.
Attached
Participant binding was attached.
Fields
§
affected_participant_id: ParticipantIdAffected participant.
§
binding_epoch: BindingEpochNew binding epoch.
Detached
Binding ended with a Detached-class cause.
Fields
§
affected_participant_id: ParticipantIdAffected participant.
§
binding_epoch: BindingEpochEnded binding epoch.
§
cause: DetachedCauseType-restricted Detached cause.
Died
Binding ended with a Died-class cause.
Fields
§
affected_participant_id: ParticipantIdAffected participant.
§
binding_epoch: BindingEpochEnded binding epoch.
Left
Participant permanently left.
Fields
§
affected_participant_id: ParticipantIdAffected participant.
§
ended_binding_epoch: Option<BindingEpoch>Binding ended by the same Leave commit, if any.
HistoryCompacted
Retained history was explicitly abandoned and compacted.
Fields
§
affected_participant_id: ParticipantIdAffected participant.
§
abandoned_after: DeliverySeqLast sequence known delivered before abandonment.
§
abandoned_through: DeliverySeqLast abandoned sequence.
§
physical_floor_at_decision: DeliverySeqPhysical floor selected by the compaction decision.
Implementations§
Source§impl ParticipantRecord
impl ParticipantRecord
Sourcepub const fn record_kind(&self) -> RecordKind
pub const fn record_kind(&self) -> RecordKind
Returns the explicit record-kind selector.
Trait Implementations§
Source§impl Clone for ParticipantRecord
impl Clone for ParticipantRecord
Source§fn clone(&self) -> ParticipantRecord
fn clone(&self) -> ParticipantRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParticipantRecord
impl Debug for ParticipantRecord
impl Eq for ParticipantRecord
Source§impl PartialEq for ParticipantRecord
impl PartialEq for ParticipantRecord
impl StructuralPartialEq for ParticipantRecord
Auto Trait Implementations§
impl Freeze for ParticipantRecord
impl RefUnwindSafe for ParticipantRecord
impl Send for ParticipantRecord
impl Sync for ParticipantRecord
impl Unpin for ParticipantRecord
impl UnsafeUnpin for ParticipantRecord
impl UnwindSafe for ParticipantRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more