pub enum TableLockKind {
Read,
ReadLocal,
Write,
}Expand description
The lock kind a MySQL TableLock acquires (lock_option in mysql sql_yacc.yy). Only
these three spellings are grammar-valid on mysql:8.4.10 — the historical (pre-8.0)
LOW_PRIORITY WRITE modifier is ER_PARSE_ERROR there (engine-measured), so it is
deliberately not a variant.
Variants§
Read
READ — a shared read lock.
ReadLocal
READ LOCAL — a shared read lock permitting concurrent non-conflicting inserts.
Write
WRITE — an exclusive write lock.
Trait Implementations§
Source§impl Clone for TableLockKind
impl Clone for TableLockKind
Source§fn clone(&self) -> TableLockKind
fn clone(&self) -> TableLockKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TableLockKind
Source§impl Debug for TableLockKind
impl Debug for TableLockKind
Source§impl<'de> Deserialize<'de> for TableLockKind
impl<'de> Deserialize<'de> for TableLockKind
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 TableLockKind
Source§impl Hash for TableLockKind
impl Hash for TableLockKind
Source§impl PartialEq for TableLockKind
impl PartialEq for TableLockKind
Source§impl Render for TableLockKind
impl Render for TableLockKind
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for TableLockKind
impl Serialize for TableLockKind
impl StructuralPartialEq for TableLockKind
Auto Trait Implementations§
impl Freeze for TableLockKind
impl RefUnwindSafe for TableLockKind
impl Send for TableLockKind
impl Sync for TableLockKind
impl Unpin for TableLockKind
impl UnsafeUnpin for TableLockKind
impl UnwindSafe for TableLockKind
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