pub struct RocksDBAdapter(/* private fields */);
Implementations§
Source§impl RocksDBAdapter
impl RocksDBAdapter
pub fn get_inner(&self) -> &StorageAdapter<OptimisticTransactionDB>
pub fn get_initialized_inner( &self, ) -> Result<&StorageAdapter<OptimisticTransactionDB>, Error>
pub fn get_mut_inner(&mut self) -> &mut StorageAdapter<OptimisticTransactionDB>
pub fn get_mut_initialized_inner( &mut self, ) -> Result<&mut StorageAdapter<OptimisticTransactionDB>, Error>
pub fn new( path: &str, max_open_files: Option<i32>, ) -> Result<RocksDBAdapter, Error>
Trait Implementations§
Source§impl DatastoreAdapter for RocksDBAdapter
impl DatastoreAdapter for RocksDBAdapter
type Transaction = DBTransaction<DBCommon<MultiThreaded, OptimisticTransactionDBInner>, Transaction<'static, DBCommon<MultiThreaded, OptimisticTransactionDBInner>>>
fn default() -> Self
fn spawn(&self) -> Self
fn transaction( &self, rw: bool, ) -> Result<DBTransaction<OptimisticTransactionDB, Transaction<'static, OptimisticTransactionDB>>, Error>
Auto Trait Implementations§
impl Freeze for RocksDBAdapter
impl RefUnwindSafe for RocksDBAdapter
impl Send for RocksDBAdapter
impl Sync for RocksDBAdapter
impl Unpin for RocksDBAdapter
impl UnwindSafe for RocksDBAdapter
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