pub enum LockingMode {
Normal,
Exclusive,
}Expand description
Database locking modes
Variants§
Normal
Normal locking mode - allows multiple readers
§Example
assert_eq!(LockingMode::Normal.to_sql().sql(), "NORMAL");Exclusive
Exclusive locking mode - single connection only
§Example
assert_eq!(LockingMode::Exclusive.to_sql().sql(), "EXCLUSIVE");Trait Implementations§
Source§impl Clone for LockingMode
impl Clone for LockingMode
Source§fn clone(&self) -> LockingMode
fn clone(&self) -> LockingMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LockingMode
impl Debug for LockingMode
Source§impl PartialEq for LockingMode
impl PartialEq for LockingMode
Source§impl<'a> ToSQL<'a, SQLiteValue<'a>> for LockingMode
impl<'a> ToSQL<'a, SQLiteValue<'a>> for LockingMode
impl StructuralPartialEq for LockingMode
Auto Trait Implementations§
impl Freeze for LockingMode
impl RefUnwindSafe for LockingMode
impl Send for LockingMode
impl Sync for LockingMode
impl Unpin for LockingMode
impl UnwindSafe for LockingMode
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