Struct Serializable
pub struct Serializable;Expand description
Serializable, via SSI on top of snapshot isolation.
Adds read-set tracking and rw-antidependency detection. Transactions may
abort with crate::Error::SerializationFailure even when no two of
them touched the same key for writing — retry is expected.
Trait Implementations§
§impl Clone for Serializable
impl Clone for Serializable
§fn clone(&self) -> Serializable
fn clone(&self) -> Serializable
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 Serializable
§impl Debug for Serializable
impl Debug for Serializable
§impl Default for Serializable
impl Default for Serializable
§fn default() -> Serializable
fn default() -> Serializable
Returns the “default value” for a type. Read more
§impl IsolationLevel for Serializable
impl IsolationLevel for Serializable
§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 = true
const VALIDATES_READS: bool = true
Whether reads are recorded and re-checked at commit. True only for
Serializable. Read moreAuto Trait Implementations§
impl Freeze for Serializable
impl RefUnwindSafe for Serializable
impl Send for Serializable
impl Sync for Serializable
impl Unpin for Serializable
impl UnsafeUnpin for Serializable
impl UnwindSafe for Serializable
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