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_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 follow the same behavior of VersionOnWrite
Implementations
sourceimpl TxStrategy
impl TxStrategy
pub fn value(&self) -> u8
pub fn from_value(val: u8) -> TxStrategy
Trait Implementations
sourceimpl Clone for TxStrategy
impl Clone for TxStrategy
sourcefn clone(&self) -> TxStrategy
fn clone(&self) -> TxStrategy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TxStrategy
impl Debug for TxStrategy
sourceimpl Default for TxStrategy
impl Default for TxStrategy
sourceimpl PartialEq<TxStrategy> for TxStrategy
impl PartialEq<TxStrategy> for TxStrategy
impl StructuralPartialEq for TxStrategy
Auto Trait Implementations
impl RefUnwindSafe for TxStrategy
impl Send for TxStrategy
impl Sync for TxStrategy
impl Unpin for TxStrategy
impl UnwindSafe for TxStrategy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more