Struct chainseeker_server::rocks_db::RocksDB [−][src]
pub struct RocksDB<K, V> where
K: Serialize + Deserialize + 'static,
V: Serialize + Deserialize + 'static, { /* fields omitted */ }
Implementations
impl<K, V> RocksDB<K, V> where
K: Serialize + Deserialize + 'static,
V: Serialize + Deserialize + 'static,
[src]
impl<K, V> RocksDB<K, V> where
K: Serialize + Deserialize + 'static,
V: Serialize + Deserialize + 'static,
[src]pub fn new(path: &str, temporary: bool) -> Self
[src]
pub fn get(&self, key: &K) -> Option<V>
[src]
pub fn get_raw(&self, key: &K) -> Option<DBPinnableSlice<'_>>
[src]
pub fn multi_get<I: IntoIterator<Item = K>>(&self, keys: I) -> Vec<Option<V>>
[src]
pub fn put(&self, key: &K, value: &V)
[src]
pub fn delete(&self, key: &K)
[src]
pub fn write(&self, batch: WriteBatch<K, V>) -> Result<(), Error>
[src]
pub fn iter(&self) -> RocksDBIterator<'_, K, V>ⓘNotable traits for RocksDBIterator<'a, K, V>
impl<'a, K, V> Iterator for RocksDBIterator<'a, K, V> where
K: Serialize + Deserialize,
V: Serialize + Deserialize, type Item = (K, V);
[src]
Notable traits for RocksDBIterator<'a, K, V>
impl<'a, K, V> Iterator for RocksDBIterator<'a, K, V> where
K: Serialize + Deserialize,
V: Serialize + Deserialize, type Item = (K, V);
pub fn prefix_iter(&self, prefix: Vec<u8>) -> RocksDBPrefixIterator<'_, K, V>ⓘNotable traits for RocksDBPrefixIterator<'a, K, V>
impl<'a, K, V> Iterator for RocksDBPrefixIterator<'a, K, V> where
K: Serialize + Deserialize,
V: Serialize + Deserialize, type Item = (K, V);
[src]
Notable traits for RocksDBPrefixIterator<'a, K, V>
impl<'a, K, V> Iterator for RocksDBPrefixIterator<'a, K, V> where
K: Serialize + Deserialize,
V: Serialize + Deserialize, type Item = (K, V);
pub fn purge(&self)
[src]
Trait Implementations
impl<K: Debug, V: Debug> Debug for RocksDB<K, V> where
K: Serialize + Deserialize + 'static,
V: Serialize + Deserialize + 'static,
[src]
impl<K: Debug, V: Debug> Debug for RocksDB<K, V> where
K: Serialize + Deserialize + 'static,
V: Serialize + Deserialize + 'static,
[src]impl<K, V> Drop for RocksDB<K, V> where
K: Serialize + Deserialize + 'static,
V: Serialize + Deserialize + 'static,
[src]
impl<K, V> Drop for RocksDB<K, V> where
K: Serialize + Deserialize + 'static,
V: Serialize + Deserialize + 'static,
[src]Auto Trait Implementations
impl<K, V> RefUnwindSafe for RocksDB<K, V>
impl<K, V> Send for RocksDB<K, V>
impl<K, V> Sync for RocksDB<K, V>
impl<K, V> Unpin for RocksDB<K, V>
impl<K, V> UnwindSafe for RocksDB<K, V>
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]