#[non_exhaustive]pub enum FaultPoint {
BeforeInsert,
AfterInsert,
AfterApprovalRequested,
AfterAttemptPersisted,
AfterActionStarted,
AfterActionReturned,
AfterVerificationStarted,
AfterCompensationStarted,
}Expand description
Where in an effect’s execution a crash can be injected, in the order they are reached.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BeforeInsert
The call started; nothing is recorded yet.
AfterInsert
The record exists (Pending); no lease is held yet.
AfterApprovalRequested
RequestApproval is persisted (AwaitingApproval); the approval
provider was not asked.
AfterAttemptPersisted
StartAttempt is persisted (Executing); the action was not called.
AfterActionStarted
The action is running: its request may or may not reach the remote system.
AfterActionReturned
The action returned; its result is not persisted.
AfterVerificationStarted
StartVerification is persisted (Verifying); no check has run.
AfterCompensationStarted
A compensation attempt is recorded (Compensating); the compensation
was not called.
Trait Implementations§
Source§impl Clone for FaultPoint
impl Clone for FaultPoint
impl Copy for FaultPoint
Source§impl Debug for FaultPoint
impl Debug for FaultPoint
impl Eq for FaultPoint
Source§impl Hash for FaultPoint
impl Hash for FaultPoint
Source§impl PartialEq for FaultPoint
impl PartialEq for FaultPoint
impl StructuralPartialEq for FaultPoint
Auto Trait Implementations§
impl Freeze for FaultPoint
impl RefUnwindSafe for FaultPoint
impl Send for FaultPoint
impl Sync for FaultPoint
impl Unpin for FaultPoint
impl UnsafeUnpin for FaultPoint
impl UnwindSafe for FaultPoint
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