#[non_exhaustive]pub enum IsolationLevel {
Unspecified,
ReadUncommitted,
ReadCommitted,
RepeatableRead,
Serializable,
Snapshot,
}Expand description
The isolation level a transaction runs at.
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.
Unspecified
The connection’s current level: READ COMMITTED, unless
SET TRANSACTION ISOLATION LEVEL changed it.
ReadUncommitted
READ UNCOMMITTED — dirty reads allowed.
ReadCommitted
READ COMMITTED — SQL Server’s own default.
RepeatableRead
REPEATABLE READ.
Serializable
SERIALIZABLE.
Snapshot
SNAPSHOT — requires the database to have snapshot isolation enabled.
Trait Implementations§
Source§impl Clone for IsolationLevel
impl Clone for IsolationLevel
impl Copy for IsolationLevel
Source§impl Debug for IsolationLevel
impl Debug for IsolationLevel
Source§impl Default for IsolationLevel
impl Default for IsolationLevel
impl Eq for IsolationLevel
Source§impl From<IsolationLevel> for IsolationLevel
impl From<IsolationLevel> for IsolationLevel
Source§fn from(level: IsolationLevel) -> Self
fn from(level: IsolationLevel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IsolationLevel
impl PartialEq for IsolationLevel
impl StructuralPartialEq for IsolationLevel
Auto Trait Implementations§
impl Freeze for IsolationLevel
impl RefUnwindSafe for IsolationLevel
impl Send for IsolationLevel
impl Sync for IsolationLevel
impl Unpin for IsolationLevel
impl UnsafeUnpin for IsolationLevel
impl UnwindSafe for IsolationLevel
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