pub enum ReadGuard {
ExpectedVersion {
key: Key,
read_ts: Timestamp,
expected_commit_ts: Option<Timestamp>,
},
ExpectedValue {
key: Key,
read_ts: Timestamp,
expected_value: Option<Value>,
},
}Expand description
A precondition guard evaluated against the MVCC state before applying a guarded batch.
Variants§
ExpectedVersion
Guard based on an expected specific version (commit timestamp).
Fields
ExpectedValue
Guard based on an expected logical value.
Trait Implementations§
impl Eq for ReadGuard
impl StructuralPartialEq for ReadGuard
Auto Trait Implementations§
impl Freeze for ReadGuard
impl RefUnwindSafe for ReadGuard
impl Send for ReadGuard
impl Sync for ReadGuard
impl Unpin for ReadGuard
impl UnsafeUnpin for ReadGuard
impl UnwindSafe for ReadGuard
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