Struct RepeatableRead
pub struct RepeatableRead;Expand description
A single snapshot for the whole transaction; repeated reads of the same key return the same value.
Under MVCC this is implemented identically to Snapshot; it exists as
a separate type to document intent and to leave room for SQL-standard
phantom semantics later.
Trait Implementations§
§impl Clone for RepeatableRead
impl Clone for RepeatableRead
§fn clone(&self) -> RepeatableRead
fn clone(&self) -> RepeatableRead
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 RepeatableRead
§impl Debug for RepeatableRead
impl Debug for RepeatableRead
§impl Default for RepeatableRead
impl Default for RepeatableRead
§fn default() -> RepeatableRead
fn default() -> RepeatableRead
Returns the “default value” for a type. Read more
§impl IsolationLevel for RepeatableRead
impl IsolationLevel for RepeatableRead
§const REFRESH_SNAPSHOT_PER_STATEMENT: bool = false
const REFRESH_SNAPSHOT_PER_STATEMENT: bool = false
Whether a fresh snapshot is taken before each statement rather than once
at
begin.§const FIRST_COMMITTER_WINS: bool = true
const FIRST_COMMITTER_WINS: bool = true
Whether the engine must check for write-write conflicts against versions
committed after this transaction’s snapshot. False only for
ReadCommitted, which re-reads the latest version before writing.§const VALIDATES_READS: bool = false
const VALIDATES_READS: bool = false
Whether reads are recorded and re-checked at commit. True only for
Serializable. Read moreAuto Trait Implementations§
impl Freeze for RepeatableRead
impl RefUnwindSafe for RepeatableRead
impl Send for RepeatableRead
impl Sync for RepeatableRead
impl Unpin for RepeatableRead
impl UnsafeUnpin for RepeatableRead
impl UnwindSafe for RepeatableRead
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