pub struct RollbackReport {
pub rolled_back_tasks: Vec<TaskId>,
pub skipped_tasks: Vec<TaskId>,
pub failed_compensations: Vec<(TaskId, String)>,
}Expand description
Report from rollback execution.
Fields§
§rolled_back_tasks: Vec<TaskId>Tasks that were successfully rolled back
skipped_tasks: Vec<TaskId>Tasks that were skipped (no compensation defined)
failed_compensations: Vec<(TaskId, String)>Tasks where compensation failed
Implementations§
Source§impl RollbackReport
impl RollbackReport
Sourcepub fn total_processed(&self) -> usize
pub fn total_processed(&self) -> usize
Returns the total number of tasks processed.
Trait Implementations§
Source§impl Clone for RollbackReport
impl Clone for RollbackReport
Source§fn clone(&self) -> RollbackReport
fn clone(&self) -> RollbackReport
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 RollbackReport
impl RefUnwindSafe for RollbackReport
impl Send for RollbackReport
impl Sync for RollbackReport
impl Unpin for RollbackReport
impl UnsafeUnpin for RollbackReport
impl UnwindSafe for RollbackReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more