#[non_exhaustive]pub enum AttemptOutcome {
Committed,
Retried {
cause: FdbError,
},
Failed,
}Expand description
How a transaction attempt ended.
Marked non exhaustive: finer-grained failure reporting is expected to add variants.
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.
Committed
The attempt committed. For a run, only the last attempt can be in this state.
Retried
The attempt was retried, cause being the error handed to on_error.
A closure error asking for a retry without a native error underneath
surfaces here as code 1020 (not_committed).
Failed
The attempt ended the run without committing: the error was not retryable, or the retries were exhausted.
Trait Implementations§
Source§impl Clone for AttemptOutcome
impl Clone for AttemptOutcome
Source§fn clone(&self) -> AttemptOutcome
fn clone(&self) -> AttemptOutcome
Returns a copy 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 AttemptOutcome
impl RefUnwindSafe for AttemptOutcome
impl Send for AttemptOutcome
impl Sync for AttemptOutcome
impl Unpin for AttemptOutcome
impl UnwindSafe for AttemptOutcome
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