pub enum OperationAttempt {
NotStarted(CallError),
Started(Result<CallResult, OperationFailure>),
}Expand description
Dispatch progress returned to the provider’s atomic execution boundary.
Variants§
NotStarted(CallError)
A canonical precondition failed and typed implementation code did not run.
Started(Result<CallResult, OperationFailure>)
Typed implementation invocation began, with either a result or a typed post-invocation failure.
Implementations§
Source§impl OperationAttempt
impl OperationAttempt
Sourcepub fn reject(kind: CallErrorKind) -> Self
pub fn reject(kind: CallErrorKind) -> Self
Rejects a provider precondition before typed implementation invocation.
Only use this before dispatch starts; post-invocation failures require an explicit effect disposition. The diagnostic is intentionally generic.
Sourcepub fn confirm_rollback(self) -> Self
pub fn confirm_rollback(self) -> Self
Marks a post-invocation failure as fully rolled back.
Successful attempts and pre-dispatch failures are returned unchanged.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OperationAttempt
impl RefUnwindSafe for OperationAttempt
impl Send for OperationAttempt
impl Sync for OperationAttempt
impl Unpin for OperationAttempt
impl UnsafeUnpin for OperationAttempt
impl UnwindSafe for OperationAttempt
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