pub enum PrepareError {
UnknownTransaction,
Conflict,
Constraint(ConstraintViolation),
DuplicateGid(String),
PreparedPending(Vec<String>),
Io(String),
}Expand description
Why NativeGraph::tx_prepare failed. Every case closes the
transaction and leaves nothing prepared.
Variants§
UnknownTransaction
The id names no open registered transaction (never begun, or already committed, rolled back or prepared).
Conflict
The graph changed since the transaction began (optimistic conflict).
Constraint(ConstraintViolation)
The transaction’s writes would violate a declared Constraint.
DuplicateGid(String)
A transaction is already prepared under this gid.
PreparedPending(Vec<String>)
Another transaction is prepared; the fence refuses this one too.
Io(String)
Writing the Prepare record failed; nothing was prepared.
Trait Implementations§
Source§impl Clone for PrepareError
impl Clone for PrepareError
Source§impl Debug for PrepareError
impl Debug for PrepareError
Source§impl Display for PrepareError
impl Display for PrepareError
impl Eq for PrepareError
Source§impl Error for PrepareError
impl Error for PrepareError
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 PrepareError
impl PartialEq for PrepareError
impl StructuralPartialEq for PrepareError
Auto Trait Implementations§
impl Freeze for PrepareError
impl RefUnwindSafe for PrepareError
impl Send for PrepareError
impl Sync for PrepareError
impl Unpin for PrepareError
impl UnsafeUnpin for PrepareError
impl UnwindSafe for PrepareError
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