Struct chainseeker_server::rocks_db::RocksDBColumnFamily[][src]

pub struct RocksDBColumnFamily<'a, K, V> where
    K: Serialize + Deserialize + 'static,
    V: Serialize + Deserialize + 'static, 
{ /* fields omitted */ }

Implementations

impl<'a, K, V> RocksDBColumnFamily<'a, K, V> where
    K: Serialize + Deserialize + 'static,
    V: Serialize + Deserialize + 'static, 
[src]

pub fn new(base: &'a RocksDB<Empty, Empty>, name: &str) -> Self[src]

pub fn name(&self) -> &str[src]

pub fn get(&self, key: &K) -> Option<V>[src]

pub fn put(&self, key: &K, value: &V)[src]

pub fn delete(&self, key: &K)[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]

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]

Auto Trait Implementations

impl<'a, K, V> RefUnwindSafe for RocksDBColumnFamily<'a, K, V>

impl<'a, K, V> Send for RocksDBColumnFamily<'a, K, V>

impl<'a, K, V> !Sync for RocksDBColumnFamily<'a, K, V>

impl<'a, K, V> Unpin for RocksDBColumnFamily<'a, K, V>

impl<'a, K, V> UnwindSafe for RocksDBColumnFamily<'a, K, V>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]