Struct ckb_rocksdb::TransactionOptions
source · 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 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