Struct ReadCommitted
pub struct ReadCommitted;Expand description
Each statement sees everything committed before that statement started.
Cheapest level: no read set, and a writer never aborts on a stale snapshot because it re-reads the latest version first. Non-repeatable reads and phantoms are visible to the application.
Trait Implementations§
§impl Clone for ReadCommitted
impl Clone for ReadCommitted
§fn clone(&self) -> ReadCommitted
fn clone(&self) -> ReadCommitted
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 ReadCommitted
§impl Debug for ReadCommitted
impl Debug for ReadCommitted
§impl Default for ReadCommitted
impl Default for ReadCommitted
§fn default() -> ReadCommitted
fn default() -> ReadCommitted
Returns the “default value” for a type. Read more
§impl IsolationLevel for ReadCommitted
impl IsolationLevel for ReadCommitted
§const REFRESH_SNAPSHOT_PER_STATEMENT: bool = true
const REFRESH_SNAPSHOT_PER_STATEMENT: bool = true
Whether a fresh snapshot is taken before each statement rather than once
at
begin.§const FIRST_COMMITTER_WINS: bool = false
const FIRST_COMMITTER_WINS: bool = false
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 ReadCommitted
impl RefUnwindSafe for ReadCommitted
impl Send for ReadCommitted
impl Sync for ReadCommitted
impl Unpin for ReadCommitted
impl UnsafeUnpin for ReadCommitted
impl UnwindSafe for ReadCommitted
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