pub enum TwoPhaseError {
Plan(TwoPhasePlanError),
Journal(TwoPhaseJournalError),
Prepare {
step: usize,
prepared: usize,
source: ClientError,
},
Commit {
step: usize,
committed: usize,
source: ClientError,
},
}Expand description
Why a cross-shard 2PC attempt failed.
Variants§
Plan(TwoPhasePlanError)
The coordinator plan was invalid (duplicate keys, empty steps, etc.).
Journal(TwoPhaseJournalError)
Durable journal read/write failed before or during the transaction.
Prepare
A prepare RPC failed after earlier steps succeeded.
Fields
§
source: ClientErrorUnderlying client / transport error.
Commit
A commit RPC failed after earlier steps succeeded.
Trait Implementations§
Source§impl Debug for TwoPhaseError
impl Debug for TwoPhaseError
Source§impl Display for TwoPhaseError
impl Display for TwoPhaseError
Source§impl Error for TwoPhaseError
impl Error for TwoPhaseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TwoPhaseJournalError> for TwoPhaseError
impl From<TwoPhaseJournalError> for TwoPhaseError
Source§fn from(source: TwoPhaseJournalError) -> Self
fn from(source: TwoPhaseJournalError) -> Self
Converts to this type from the input type.
Source§impl From<TwoPhasePlanError> for TwoPhaseError
impl From<TwoPhasePlanError> for TwoPhaseError
Source§fn from(source: TwoPhasePlanError) -> Self
fn from(source: TwoPhasePlanError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TwoPhaseError
impl RefUnwindSafe for TwoPhaseError
impl Send for TwoPhaseError
impl Sync for TwoPhaseError
impl Unpin for TwoPhaseError
impl UnsafeUnpin for TwoPhaseError
impl UnwindSafe for TwoPhaseError
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