pub struct TransactionOptions { /* private fields */ }
Implementations§
Source§impl TransactionOptions
impl TransactionOptions
Sourcepub fn new() -> TransactionOptions
pub fn new() -> TransactionOptions
Create new transaction options
pub fn set_deadlock_detect(&self, deadlock_detect: bool)
pub fn set_deadlock_detect_depth(&self, depth: i64)
pub fn set_expiration(&self, expiration: i64)
pub fn set_lock_timeout(&self, lock_timeout: i64)
pub fn set_max_write_batch_size(&self, size: usize)
pub fn set_snapshot(&mut self, set_snapshot: bool)
Trait Implementations§
Source§impl Default for TransactionOptions
impl Default for TransactionOptions
Source§fn default() -> TransactionOptions
fn default() -> TransactionOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransactionOptions
impl RefUnwindSafe for TransactionOptions
impl !Send for TransactionOptions
impl !Sync for TransactionOptions
impl Unpin for TransactionOptions
impl UnwindSafe for TransactionOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more