pub enum IndexLock {
Default,
None,
Shared,
Exclusive,
}Expand description
The online-DDL LOCK value (alter_lock_option_value). DEFAULT is a keyword; the rest
are matched case-insensitively as identifiers, and an unknown value is a binding reject
(ER_UNKNOWN_ALTER_LOCK 1801), not a syntax error — so only these four bind.
Variants§
Default
DEFAULT — the server’s default concurrency.
None
NONE — permit concurrent reads and writes.
SHARED — permit concurrent reads only.
Exclusive
EXCLUSIVE — permit no concurrent access.
Trait Implementations§
impl Copy for IndexLock
Source§impl<'de> Deserialize<'de> for IndexLock
impl<'de> Deserialize<'de> for IndexLock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IndexLock
impl StructuralPartialEq for IndexLock
Auto Trait Implementations§
impl Freeze for IndexLock
impl RefUnwindSafe for IndexLock
impl Send for IndexLock
impl Sync for IndexLock
impl Unpin for IndexLock
impl UnsafeUnpin for IndexLock
impl UnwindSafe for IndexLock
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