pub enum LedgerError {
Sequence {
expected: u64,
got: u64,
},
DuplicateTxn(TxnId),
NotLive(TxnId),
StaleEpoch {
txn: TxnId,
current: u64,
got: u64,
},
IllegalStep {
txn: TxnId,
from: &'static str,
to: &'static str,
},
Exclusive {
txn: TxnId,
blocker: TxnId,
},
Interlocked {
txn: TxnId,
},
UnknownOp(OpId),
DuplicateOp(OpId),
NotInterlocked(TxnId),
BadPrepared(&'static str),
ExternalReplay {
have: u64,
got: u64,
},
}Variants§
Sequence
DuplicateTxn(TxnId)
NotLive(TxnId)
StaleEpoch
I15: only the current lease holder’s epoch may advance the journal.
IllegalStep
Exclusive
I6: a generation-changing transaction overlaps another in-flight one.
Interlocked
§12c: autonomous mutation while the recovery interlock is set.
UnknownOp(OpId)
DuplicateOp(OpId)
NotInterlocked(TxnId)
BadPrepared(&'static str)
ExternalReplay
B-16: an external document no newer than the one in force.
Trait Implementations§
Source§impl Clone for LedgerError
impl Clone for LedgerError
Source§fn clone(&self) -> LedgerError
fn clone(&self) -> LedgerError
Returns a duplicate 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 moreSource§impl Debug for LedgerError
impl Debug for LedgerError
Source§impl From<LedgerError> for JournalError
impl From<LedgerError> for JournalError
Source§fn from(e: LedgerError) -> Self
fn from(e: LedgerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LedgerError
impl PartialEq for LedgerError
impl Eq for LedgerError
impl StructuralPartialEq for LedgerError
Auto Trait Implementations§
impl Freeze for LedgerError
impl RefUnwindSafe for LedgerError
impl Send for LedgerError
impl Sync for LedgerError
impl Unpin for LedgerError
impl UnsafeUnpin for LedgerError
impl UnwindSafe for LedgerError
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