pub enum LockWait {
Wait,
NoWait,
SkipLocked,
}Expand description
What to do when the row is already locked.
Variants§
Wait
Block until it is free — PG’s default.
NoWait
NOWAIT — fail the statement with 55P03.
SkipLocked
SKIP LOCKED — leave the row out of the result.
Trait Implementations§
impl Copy for LockWait
impl Eq for LockWait
impl StructuralPartialEq for LockWait
Auto Trait Implementations§
impl Freeze for LockWait
impl RefUnwindSafe for LockWait
impl Send for LockWait
impl Sync for LockWait
impl Unpin for LockWait
impl UnsafeUnpin for LockWait
impl UnwindSafe for LockWait
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