Enum golem_rust::TransactionFailure
source · pub enum TransactionFailure<Err> {
FailedAndRolledBackCompletely(Err),
FailedAndRolledBackPartially {
failure: Err,
compensation_failure: Err,
},
}
Expand description
The result of a transaction execution that failed.
Variants§
FailedAndRolledBackCompletely(Err)
One of the operations failed with an error, and the transaction was fully rolled back.
FailedAndRolledBackPartially
One of the operations failed with an error, and the transaction was partially rolled back because the compensation action of one of the operations also failed.
Trait Implementations§
source§impl<Err: Debug> Debug for TransactionFailure<Err>
impl<Err: Debug> Debug for TransactionFailure<Err>
Auto Trait Implementations§
impl<Err> Freeze for TransactionFailure<Err>where
Err: Freeze,
impl<Err> RefUnwindSafe for TransactionFailure<Err>where
Err: RefUnwindSafe,
impl<Err> Send for TransactionFailure<Err>where
Err: Send,
impl<Err> Sync for TransactionFailure<Err>where
Err: Sync,
impl<Err> Unpin for TransactionFailure<Err>where
Err: Unpin,
impl<Err> UnwindSafe for TransactionFailure<Err>where
Err: UnwindSafe,
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