#[repr(u8)]pub enum IsolationLevel {
Unspecified = 0,
ReadUncommitted = 1,
ReadCommitted = 2,
RepeatableRead = 3,
Serializable = 4,
Snapshot = 5,
}Expand description
The transaction isolation level requested when beginning a transaction through a Transaction Manager request (MS-TDS 2.2.6.9).
Any level other than Unspecified is a session setting, like
SET TRANSACTION ISOLATION LEVEL: it stays in effect after the
transaction ends, for later transactions and for statements outside
any transaction.
Variants§
Unspecified = 0
Keep the session’s current isolation level (“No isolation level
change requested. Use current.”, MS-TDS 2.2.6.9). That is READ
COMMITTED only on a session that never set another level: after a
SERIALIZABLE transaction, an Unspecified one is SERIALIZABLE too.
ReadUncommitted = 1
READ UNCOMMITTED.
ReadCommitted = 2
READ COMMITTED.
RepeatableRead = 3
REPEATABLE READ.
Serializable = 4
SERIALIZABLE.
Snapshot = 5
SNAPSHOT.
Trait Implementations§
Source§impl Clone for IsolationLevel
impl Clone for IsolationLevel
impl Copy for IsolationLevel
Source§impl Debug for IsolationLevel
impl Debug for IsolationLevel
impl Eq for IsolationLevel
Source§impl PartialEq for IsolationLevel
impl PartialEq for IsolationLevel
impl StructuralPartialEq for IsolationLevel
Source§impl TryFrom<u8> for IsolationLevel
impl TryFrom<u8> 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