Enum tokio_postgres::IsolationLevel [−][src]
#[non_exhaustive]
pub enum IsolationLevel {
ReadUncommitted,
ReadCommitted,
RepeatableRead,
Serializable,
}
Expand description
The isolation level of a database transaction.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Equivalent to ReadCommitted
.
An individual statement in the transaction will see rows committed before it began.
All statements in the transaction will see the same view of rows committed before the first query in the transaction.
The reads and writes in this transaction must be able to be committed as an atomic “unit” with respect to reads and writes of all other concurrent serializable transactions without interleaving.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IsolationLevel
impl Send for IsolationLevel
impl Sync for IsolationLevel
impl Unpin for IsolationLevel
impl UnwindSafe for IsolationLevel
Blanket Implementations
Mutably borrows from an owned value. Read more