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]
impl TxStrategy
pub fn value(&self) -> u8
[src]
pub fn value(&self) -> u8
pub fn from_value(val: u8) -> TxStrategy
[src]
pub fn from_value(val: u8) -> TxStrategy
Trait Implementations
impl PartialEq for TxStrategy
[src]
impl PartialEq for TxStrategy
fn eq(&self, other: &TxStrategy) -> bool
[src]
fn eq(&self, other: &TxStrategy) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Clone for TxStrategy
[src]
impl Clone for TxStrategy
fn clone(&self) -> TxStrategy
[src]
fn clone(&self) -> TxStrategy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for TxStrategy
[src]
impl Debug for TxStrategy
Auto Trait Implementations
impl Send for TxStrategy
impl Send for TxStrategy
impl Sync for TxStrategy
impl Sync for TxStrategy