pub enum LockLevel {
Unlocked,
Shared,
Reserved,
Pending,
Exclusive,
}
Expand description
Represents one of the 5 SQLite
locking levels.
See SQLite documentation for more information.
Variants§
Unlocked
No locks are held; the database may be neither read nor written.
The database may be read but not written. Multiple Shared locks can coexist at once.
Reserved
A shared lock with the intention to upgrade to an exclusive lock. Only one Reserved lock can exist at once.
Pending
A lock in the process of upgrading to a reserved lock. Can coexist with Shared locks, but no new shared locks can be taken.
Exclusive
The database may be read or written, but no other locks can be held.
Trait Implementations§
Source§impl Ord for LockLevel
impl Ord for LockLevel
Source§impl PartialOrd for LockLevel
impl PartialOrd for LockLevel
impl Copy for LockLevel
impl Eq for LockLevel
impl StructuralPartialEq for LockLevel
Auto Trait Implementations§
impl Freeze for LockLevel
impl RefUnwindSafe for LockLevel
impl Send for LockLevel
impl Sync for LockLevel
impl Unpin for LockLevel
impl UnwindSafe for LockLevel
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