Trait rocksdb::ThreadMode

source ·
pub trait ThreadMode {
    // Required methods
    fn new_cf_map_internal(
        cf_map: BTreeMap<String, *mut rocksdb_column_family_handle_t>,
    ) -> Self;
    fn drop_all_cfs_internal(&mut self);
}
Expand description

Marker trait to specify single or multi threaded column family alternations for DBWithThreadMode<T>

This arrangement makes differences in self mutability and return type in some of DBWithThreadMode methods.

While being a marker trait to be generic over DBWithThreadMode, this trait also has a minimum set of not-encapsulated internal methods between SingleThreaded and MultiThreaded. These methods aren’t expected to be called and defined externally.

Required Methods§

source

fn new_cf_map_internal( cf_map: BTreeMap<String, *mut rocksdb_column_family_handle_t>, ) -> Self

Internal implementation for storing column family handles

source

fn drop_all_cfs_internal(&mut self)

Internal implementation for dropping column family handles

Object Safety§

This trait is not object safe.

Implementors§