pub struct RocksDb { /* private fields */ }
Implementations§
Trait Implementations§
source§impl BatchOperations for RocksDb
impl BatchOperations for RocksDb
fn batch_write( &self, entries: &mut dyn Iterator<Item = (Vec<u8>, Column, WriteOperation)> ) -> DatabaseResult<()>
source§impl KeyValueStore for RocksDb
impl KeyValueStore for RocksDb
fn get(&self, key: &[u8], column: Column) -> DatabaseResult<Option<Value>>
fn put( &self, key: &[u8], column: Column, value: Value ) -> DatabaseResult<Option<Value>>
fn delete(&self, key: &[u8], column: Column) -> DatabaseResult<Option<Value>>
fn exists(&self, key: &[u8], column: Column) -> DatabaseResult<bool>
fn iter_all( &self, column: Column, prefix: Option<&[u8]>, start: Option<&[u8]>, direction: IterDirection ) -> BoxedIter<'_, KVItem>
impl TransactableStorage for RocksDb
Auto Trait Implementations§
impl RefUnwindSafe for RocksDb
impl Send for RocksDb
impl Sync for RocksDb
impl Unpin for RocksDb
impl UnwindSafe for RocksDb
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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