pub enum TwoPhasePlanError {
EmptyTxId,
EmptyPlan,
TooManySteps,
PayloadTooLarge {
step: usize,
},
UnroutableKey {
step: usize,
},
TooManyGroups {
groups: usize,
},
}Expand description
Why a TwoPhasePlan fails validation.
Variants§
EmptyTxId
TwoPhasePlan::tx_id is empty.
EmptyPlan
No steps in the plan.
TooManySteps
Step count exceeds TWO_PHASE_MAX_STEPS.
PayloadTooLarge
Command payload exceeds TWO_PHASE_MAX_PAYLOAD.
UnroutableKey
group_for_key returned None for a step key.
TooManyGroups
Distinct group count exceeds TWO_PHASE_MAX_GROUPS.
Trait Implementations§
Source§impl Clone for TwoPhasePlanError
impl Clone for TwoPhasePlanError
Source§fn clone(&self) -> TwoPhasePlanError
fn clone(&self) -> TwoPhasePlanError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TwoPhasePlanError
impl Debug for TwoPhasePlanError
Source§impl Display for TwoPhasePlanError
impl Display for TwoPhasePlanError
impl Eq for TwoPhasePlanError
Source§impl Error for TwoPhasePlanError
impl Error for TwoPhasePlanError
1.30.0 · 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 PartialEq for TwoPhasePlanError
impl PartialEq for TwoPhasePlanError
impl StructuralPartialEq for TwoPhasePlanError
Auto Trait Implementations§
impl Freeze for TwoPhasePlanError
impl RefUnwindSafe for TwoPhasePlanError
impl Send for TwoPhasePlanError
impl Sync for TwoPhasePlanError
impl Unpin for TwoPhasePlanError
impl UnsafeUnpin for TwoPhasePlanError
impl UnwindSafe for TwoPhasePlanError
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