pub enum TrLockResolution {
NoWait,
Wait(Option<u32>),
}
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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for TrLockResolution
impl PartialEq for TrLockResolution
impl Copy for TrLockResolution
impl Eq for TrLockResolution
impl StructuralPartialEq for TrLockResolution
Auto Trait Implementations§
impl Freeze for TrLockResolution
impl RefUnwindSafe for TrLockResolution
impl Send for TrLockResolution
impl Sync for TrLockResolution
impl Unpin for TrLockResolution
impl UnwindSafe for TrLockResolution
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