Skip to main content

Crate changeset_saga

Crate changeset_saga 

Source
Expand description

Saga pattern for atomic multi-step operations.

This crate provides infrastructure for executing multi-step operations with automatic rollback on failure. Each step produces an output that becomes the next step’s input, and stores the original input for compensation.

Structs§

CompensationError
Error from a failed compensation operation.
Saga
A compiled saga ready for execution.
SagaAuditLog
Audit log tracking all step executions in a saga.
SagaBuilder
Type-state builder for constructing type-safe sagas.
StepRecord
Record of a step’s execution in the saga.

Enums§

SagaError
Error from saga execution.
StepStatus
Status of a step in the audit log.

Traits§

SagaStep
A step in a saga that can be executed and compensated.