Enum persy::TxStrategy [−][src]
pub enum TxStrategy { LastWin, VersionOnWrite, VersionOnRead, }
Expand description
Concurrent Modification Strategy for resolution of conflict on commit.
Variants
Last modification received override all the previous modifications
prepare_commit will fail if the persistent version is more recent of the version when the update_record/delete_record is executed
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
Implementations
impl TxStrategy
[src]
impl TxStrategy
[src]pub fn value(&self) -> u8
[src]
pub fn from_value(val: u8) -> TxStrategy
[src]
Trait Implementations
impl Clone for TxStrategy
[src]
impl Clone for TxStrategy
[src]fn clone(&self) -> 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]
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
[src]impl Default for TxStrategy
[src]
impl Default for TxStrategy
[src]impl PartialEq<TxStrategy> for TxStrategy
[src]
impl PartialEq<TxStrategy> for TxStrategy
[src]impl StructuralPartialEq for TxStrategy
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,