pub enum LockStrength {
Update,
NoKeyUpdate,
Share,
KeyShare,
}Expand description
How strong a row lock is, weakest last.
Variants§
Update
FOR UPDATE.
NoKeyUpdate
FOR NO KEY UPDATE — PostgreSQL only; weaker than UPDATE, and does not
block a foreign-key reference.
FOR SHARE.
FOR KEY SHARE — PostgreSQL only; the weakest.
Implementations§
Trait Implementations§
Source§impl Clone for LockStrength
impl Clone for LockStrength
Source§fn clone(&self) -> LockStrength
fn clone(&self) -> LockStrength
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 LockStrength
Source§impl Debug for LockStrength
impl Debug for LockStrength
impl Eq for LockStrength
Source§impl PartialEq for LockStrength
impl PartialEq for LockStrength
impl StructuralPartialEq for LockStrength
Auto Trait Implementations§
impl Freeze for LockStrength
impl RefUnwindSafe for LockStrength
impl Send for LockStrength
impl Sync for LockStrength
impl Unpin for LockStrength
impl UnsafeUnpin for LockStrength
impl UnwindSafe for LockStrength
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