pub enum ConsistencyLevel {
Optimistic,
ReadCommitted,
Serializable,
}Expand description
Consistency level (Spec §B.7.4.2).
Variants§
Optimistic
OPTIMISTIC — conflict check at commit time.
ReadCommitted
READ_COMMITTED — like OPTIMISTIC, but reads only see
Committed objects.
Serializable
SERIALIZABLE — strictly serialized (the caller serializes
transactions, not the cache).
Trait Implementations§
Source§impl Clone for ConsistencyLevel
impl Clone for ConsistencyLevel
Source§fn clone(&self) -> ConsistencyLevel
fn clone(&self) -> ConsistencyLevel
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 moreimpl Copy for ConsistencyLevel
Source§impl Debug for ConsistencyLevel
impl Debug for ConsistencyLevel
Source§impl Default for ConsistencyLevel
impl Default for ConsistencyLevel
impl Eq for ConsistencyLevel
Source§impl PartialEq for ConsistencyLevel
impl PartialEq for ConsistencyLevel
Source§fn eq(&self, other: &ConsistencyLevel) -> bool
fn eq(&self, other: &ConsistencyLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConsistencyLevel
Auto Trait Implementations§
impl Freeze for ConsistencyLevel
impl RefUnwindSafe for ConsistencyLevel
impl Send for ConsistencyLevel
impl Sync for ConsistencyLevel
impl Unpin for ConsistencyLevel
impl UnsafeUnpin for ConsistencyLevel
impl UnwindSafe for ConsistencyLevel
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