pub enum LockAcquire {
Wait,
NoWait,
SkipLocked,
}Available on crate feature
postgres-only only.Expand description
How to acquire a SELECT statement’s row lock
Variants§
Wait
SELECT ... FOR <strength>;
NoWait
SELECT ... FOR <strength> NOWAIT;
SkipLocked
SELECT ... FOR <strength> SKIP LOCKED;
Trait Implementations§
Source§impl Clone for LockAcquire
impl Clone for LockAcquire
Source§fn clone(&self) -> LockAcquire
fn clone(&self) -> LockAcquire
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 LockAcquire
Source§impl Debug for LockAcquire
impl Debug for LockAcquire
Source§impl Default for LockAcquire
impl Default for LockAcquire
Source§fn default() -> LockAcquire
fn default() -> LockAcquire
Returns the “default value” for a type. Read more
impl Eq for LockAcquire
Source§impl Hash for LockAcquire
impl Hash for LockAcquire
Source§impl PartialEq for LockAcquire
impl PartialEq for LockAcquire
Source§fn eq(&self, other: &LockAcquire) -> bool
fn eq(&self, other: &LockAcquire) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LockAcquire
Auto Trait Implementations§
impl Freeze for LockAcquire
impl RefUnwindSafe for LockAcquire
impl Send for LockAcquire
impl Sync for LockAcquire
impl Unpin for LockAcquire
impl UnsafeUnpin for LockAcquire
impl UnwindSafe for LockAcquire
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