Expand description
Lock resolution modes
Variants§
NoWait
In the NO WAIT mode, a transaction will immediately throw a database exception if a conflict occurs
Wait(Option<u32>)
In the WAIT model, transaction will wait till the other transaction has finished.
If a TIMEOUT is specified for the WAIT transaction, waiting will continue only for the number of seconds specified
Trait Implementations§
source§impl Clone for TrLockResolution
impl Clone for TrLockResolution
source§fn clone(&self) -> TrLockResolution
fn clone(&self) -> TrLockResolution
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TrLockResolution
impl Debug for TrLockResolution
source§impl Default for TrLockResolution
impl Default for TrLockResolution
source§impl From<TrLockResolution> for u8
impl From<TrLockResolution> for u8
source§fn from(tp: TrLockResolution) -> Self
fn from(tp: TrLockResolution) -> Self
Converts to this type from the input type.
source§impl PartialEq<TrLockResolution> for TrLockResolution
impl PartialEq<TrLockResolution> for TrLockResolution
source§fn eq(&self, other: &TrLockResolution) -> bool
fn eq(&self, other: &TrLockResolution) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.