pub enum ConflictKeys {
NotRequested,
Available(Vec<ConflictingKeyRange>),
ReadFailed(FdbError),
}Expand description
The conflicting key ranges of a transaction attempt.
They are only read after a commit conflict, and only carry ranges when
TransactionOption::ReportConflictingKeys
was set on the transaction.
Variants§
NotRequested
The attempt did not fail on a commit conflict, so nothing was read.
Available(Vec<ConflictingKeyRange>)
The special keyspace was read. The list is empty when
ReportConflictingKeys was not enabled.
ReadFailed(FdbError)
The special keyspace read failed.
Implementations§
Source§impl ConflictKeys
impl ConflictKeys
Sourcepub fn ranges(&self) -> &[ConflictingKeyRange]
pub fn ranges(&self) -> &[ConflictingKeyRange]
The conflicting ranges, empty unless they were read successfully.
Trait Implementations§
Source§impl Clone for ConflictKeys
impl Clone for ConflictKeys
Source§fn clone(&self) -> ConflictKeys
fn clone(&self) -> ConflictKeys
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 moreSource§impl Debug for ConflictKeys
impl Debug for ConflictKeys
Source§impl Default for ConflictKeys
impl Default for ConflictKeys
Source§fn default() -> ConflictKeys
fn default() -> ConflictKeys
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConflictKeys
impl RefUnwindSafe for ConflictKeys
impl Send for ConflictKeys
impl Sync for ConflictKeys
impl Unpin for ConflictKeys
impl UnwindSafe for ConflictKeys
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