pub struct ObserverProgressRetireTransaction { /* private fields */ }Expand description
Ownership barrier between a validated retirement and its durable append.
The aggregate is unreachable while the transaction is pending, so no arm
can be installed on the conversation between the check and the removal.
Consuming Self::commit removes the progress row after the caller has
confirmed the durable retire row; consuming Self::abort returns the
aggregate unchanged.
Implementations§
Source§impl ObserverProgressRetireTransaction
impl ObserverProgressRetireTransaction
Sourcepub const fn conversation_id(&self) -> ConversationId
pub const fn conversation_id(&self) -> ConversationId
Returns the conversation whose retire row the durable append writes.
Sourcepub fn commit(self) -> ObserverRecoveryAggregate
pub fn commit(self) -> ObserverRecoveryAggregate
Removes the conversation’s progress row after a confirmed durable append.
Sourcepub fn abort(self) -> ObserverRecoveryAggregate
pub fn abort(self) -> ObserverRecoveryAggregate
Cancels a failed durable append; the row stays.
Trait Implementations§
impl Eq for ObserverProgressRetireTransaction
impl StructuralPartialEq for ObserverProgressRetireTransaction
Auto Trait Implementations§
impl Freeze for ObserverProgressRetireTransaction
impl RefUnwindSafe for ObserverProgressRetireTransaction
impl Send for ObserverProgressRetireTransaction
impl Sync for ObserverProgressRetireTransaction
impl Unpin for ObserverProgressRetireTransaction
impl UnsafeUnpin for ObserverProgressRetireTransaction
impl UnwindSafe for ObserverProgressRetireTransaction
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