#[non_exhaustive]pub enum Isolation {
ReadCommitted,
RepeatableRead,
Serializable,
}Expand description
The isolation level a transaction asks for. A backend gives the level asked for or a stronger one;
which it can actually show is what the rel.isolation.* leaves certify.
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.
ReadCommitted
No dirty reads: the backend’s usual level for a transaction here.
RepeatableRead
A row or count read twice in the transaction reads the same.
Serializable
Concurrent transactions behave as if they ran one at a time (a conflicting one fails with
RelError::Serialization, or waits).
Trait Implementations§
impl Copy for Isolation
impl Eq for Isolation
impl StructuralPartialEq for Isolation
Auto Trait Implementations§
impl Freeze for Isolation
impl RefUnwindSafe for Isolation
impl Send for Isolation
impl Sync for Isolation
impl Unpin for Isolation
impl UnsafeUnpin for Isolation
impl UnwindSafe for Isolation
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