pub struct ExecutionState {
pub saga_id: Uuid,
pub total_steps: u32,
pub completed_steps: u32,
pub current_step: Option<u32>,
pub failed: bool,
pub failure_reason: Option<String>,
}Expand description
Current execution state of a saga
Fields§
§saga_id: UuidSaga identifier
total_steps: u32Total steps in saga
completed_steps: u32Number of completed steps
current_step: Option<u32>Currently executing step, if any
failed: boolWhether saga has failed
failure_reason: Option<String>Reason for failure, if any
Trait Implementations§
Source§impl Clone for ExecutionState
impl Clone for ExecutionState
Source§fn clone(&self) -> ExecutionState
fn clone(&self) -> ExecutionState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExecutionState
impl RefUnwindSafe for ExecutionState
impl Send for ExecutionState
impl Sync for ExecutionState
impl Unpin for ExecutionState
impl UnsafeUnpin for ExecutionState
impl UnwindSafe for ExecutionState
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