Enum persy::TxStrategy
source · pub enum TxStrategy {
LastWin,
VersionOnWrite,
VersionOnRead,
}
Expand description
Concurrent Modification Strategy for resolution of conflict on commit.
Variants§
LastWin
Last modification received override all the previous modifications
VersionOnWrite
prepare_commit will fail if the persistent version is more recent of the version when
the update
or delete
is executed
VersionOnRead
Implementations§
source§impl TxStrategy
impl TxStrategy
pub fn value(&self) -> u8
pub fn from_value(val: u8) -> TxStrategy
Trait Implementations§
source§impl Clone for TxStrategy
impl Clone for TxStrategy
source§fn clone(&self) -> TxStrategy
fn clone(&self) -> TxStrategy
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 TxStrategy
impl Debug for TxStrategy
source§impl Default for TxStrategy
impl Default for TxStrategy
source§fn default() -> TxStrategy
fn default() -> TxStrategy
Returns the “default value” for a type. Read more
source§impl PartialEq for TxStrategy
impl PartialEq for TxStrategy
source§fn eq(&self, other: &TxStrategy) -> bool
fn eq(&self, other: &TxStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TxStrategy
impl StructuralPartialEq for TxStrategy
Auto Trait Implementations§
impl Freeze for TxStrategy
impl RefUnwindSafe for TxStrategy
impl Send for TxStrategy
impl Sync for TxStrategy
impl Unpin for TxStrategy
impl UnwindSafe for TxStrategy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)