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§impl PartialEq<TxStrategy> for TxStrategy
impl PartialEq<TxStrategy> 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 ==
.