pub enum LockStrength {
Update,
NoKeyUpdate,
Share,
KeyShare,
}Available on crate feature
postgres-only only.Expand description
Strength of a SELECT statement’s row lock
Variants§
Update
SELECT ... FOR UPDATE;
NoKeyUpdate
SELECT ... FOR NO KEY UPDATE;
SELECT ... FOR SHARE;
SELECT ... FOR KEY SHARE;
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 Hash for LockStrength
impl Hash for LockStrength
Source§impl PartialEq for LockStrength
impl PartialEq for LockStrength
Source§fn eq(&self, other: &LockStrength) -> bool
fn eq(&self, other: &LockStrength) -> bool
Tests for
self and other values to be equal, and is used by ==.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