Enum persy::TxStrategy
[−]
[src]
pub enum TxStrategy { LastWin, VersionOnWrite, VersionOnRead, }
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_record/delete_record is executed
VersionOnRead
prepare_commit will fail if the persistent version is more recent of the version of the last read_record_tx, if no read_record_tx was called will fallow the same behaviour of VersionOnWrite
Methods
impl TxStrategy
[src]
fn value(&self) -> u8
[src]
fn from_value(val: u8) -> TxStrategy
[src]
Trait Implementations
impl PartialEq for TxStrategy
[src]
fn eq(&self, __arg_0: &TxStrategy) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for TxStrategy
[src]
fn clone(&self) -> TxStrategy
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more