pub struct OptimisticTransactionOptions {
pub inner: *mut rocksdb_optimistictransaction_options_t,
}
Fields§
§inner: *mut rocksdb_optimistictransaction_options_t
Implementations§
source§impl OptimisticTransactionOptions
impl OptimisticTransactionOptions
sourcepub fn new() -> OptimisticTransactionOptions
pub fn new() -> OptimisticTransactionOptions
Create new optimistic transaction options
sourcepub fn set_snapshot(&mut self, set_snapshot: bool)
pub fn set_snapshot(&mut self, set_snapshot: bool)
Set a snapshot at start of transaction by setting set_snapshot=true Default: false
Trait Implementations§
source§impl Default for OptimisticTransactionOptions
impl Default for OptimisticTransactionOptions
source§fn default() -> OptimisticTransactionOptions
fn default() -> OptimisticTransactionOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for OptimisticTransactionOptions
impl !Send for OptimisticTransactionOptions
impl !Sync for OptimisticTransactionOptions
impl Unpin for OptimisticTransactionOptions
impl UnwindSafe for OptimisticTransactionOptions
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