Struct persy::TransactionConfig
source · [−]pub struct TransactionConfig { /* private fields */ }
Expand description
Configure the parameters for the transaction on the begin of a new transaction.
Implementations
sourceimpl TransactionConfig
impl TransactionConfig
pub fn new() -> Self
sourcepub fn set_strategy(self, strategy: TxStrategy) -> Self
pub fn set_strategy(self, strategy: TxStrategy) -> Self
Set the transaction concurrency checks, experimental use carefully
sourcepub fn set_transaction_id(self, transaction_id: TransactionId) -> Self
pub fn set_transaction_id(self, transaction_id: TransactionId) -> Self
Set the transaction id to be used in case of crash recovery.
Trait Implementations
sourceimpl Clone for TransactionConfig
impl Clone for TransactionConfig
sourcefn clone(&self) -> TransactionConfig
fn clone(&self) -> TransactionConfig
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 Default for TransactionConfig
impl Default for TransactionConfig
sourcefn default() -> TransactionConfig
fn default() -> TransactionConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TransactionConfig
impl Send for TransactionConfig
impl Sync for TransactionConfig
impl Unpin for TransactionConfig
impl UnwindSafe for TransactionConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more