Struct cfx_storage::KvdbRocksdb
source · pub struct KvdbRocksdb {
pub kvdb: Arc<Database>,
pub col: u32,
}
Fields§
§kvdb: Arc<Database>
§col: u32
Trait Implementations§
source§impl Clone for KvdbRocksdb
impl Clone for KvdbRocksdb
source§fn clone(&self) -> KvdbRocksdb
fn clone(&self) -> KvdbRocksdb
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl KeyValueDbTrait for KvdbRocksdb
impl KeyValueDbTrait for KvdbRocksdb
source§fn delete(&self, key: &[u8]) -> Result<Option<Option<Box<[u8]>>>>
fn delete(&self, key: &[u8]) -> Result<Option<Option<Box<[u8]>>>>
Return Some(maybe_old_value) or None if the db don’t support reading the
old value at deletion.
fn put(&self, key: &[u8], value: &[u8]) -> Result<Option<Option<Box<[u8]>>>>
fn delete_with_number_key( &self, key: i64 ) -> Result<Option<Option<Self::ValueType>>>
fn put_with_number_key( &self, key: i64, value: &<Self::ValueType as DbValueType>::Type ) -> Result<Option<Option<Self::ValueType>>>
source§impl KeyValueDbTraitRead for KvdbRocksdb
impl KeyValueDbTraitRead for KvdbRocksdb
source§impl KeyValueDbTraitTransactional for KvdbRocksdb
impl KeyValueDbTraitTransactional for KvdbRocksdb
type TransactionType = KvdbRocksDbTransaction
source§fn start_transaction(
&self,
_immediate_write: bool
) -> Result<Self::TransactionType>
fn start_transaction( &self, _immediate_write: bool ) -> Result<Self::TransactionType>
Immediate_write indicates whether the transaction should acquire a
write-lock immediately if any.
source§impl KeyValueDbTypes for KvdbRocksdb
impl KeyValueDbTypes for KvdbRocksdb
source§impl MallocSizeOf for KvdbRocksdb
impl MallocSizeOf for KvdbRocksdb
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl OwnedReadImplFamily for &KvdbRocksdb
impl OwnedReadImplFamily for &KvdbRocksdb
type FamilyRepresentative = dyn KeyValueDbTraitMultiReader<ValueType = <KvdbRocksdb as KeyValueDbTypes>::ValueType>
impl DeltaDbTrait for KvdbRocksdb
impl KeyValueDbTraitMultiReader for KvdbRocksdb
Auto Trait Implementations§
impl !RefUnwindSafe for KvdbRocksdb
impl Send for KvdbRocksdb
impl Sync for KvdbRocksdb
impl Unpin for KvdbRocksdb
impl !UnwindSafe for KvdbRocksdb
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