pub trait GetProperty {
    // Required methods
    fn property_value(&self, name: &str) -> Result<Option<String>, Error>;
    fn property_int_value(&self, name: &str) -> Result<Option<u64>, Error>;
}

Required Methods§

source

fn property_value(&self, name: &str) -> Result<Option<String>, Error>

Retrieves a RocksDB property by name.

For a full list of properties, see https://github.com/facebook/rocksdb/blob/08809f5e6cd9cc4bc3958dd4d59457ae78c76660/include/rocksdb/db.h#L428-L634

source

fn property_int_value(&self, name: &str) -> Result<Option<u64>, Error>

Retrieves a RocksDB property and casts it to an integer.

For a full list of properties that return int values, see https://github.com/facebook/rocksdb/blob/08809f5e6cd9cc4bc3958dd4d59457ae78c76660/include/rocksdb/db.h#L654-L689

Implementors§

source§

impl<T> GetProperty for Twhere T: Handle<rocksdb_t>,