pub enum SagaEvent {
Completed {
steps: usize,
},
Compensated {
forward_steps: usize,
compensated: usize,
},
Stuck {
failed_step: usize,
compensate_failed_at: usize,
},
}Expand description
Lifecycle events for metrics / logging (see cross-shard-transactions ADR).
Variants§
Completed
All forward steps committed.
Compensated
Forward failed and compensators ran successfully.
Fields
Stuck
Compensation failed — saga may be stuck; operator intervention required.
Trait Implementations§
impl Copy for SagaEvent
impl Eq for SagaEvent
impl StructuralPartialEq for SagaEvent
Auto Trait Implementations§
impl Freeze for SagaEvent
impl RefUnwindSafe for SagaEvent
impl Send for SagaEvent
impl Sync for SagaEvent
impl Unpin for SagaEvent
impl UnsafeUnpin for SagaEvent
impl UnwindSafe for SagaEvent
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