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§
Sourcefn new_cf_map_internal(
cf_map: BTreeMap<String, *mut rocksdb_column_family_handle_t>,
) -> Self
fn new_cf_map_internal( cf_map: BTreeMap<String, *mut rocksdb_column_family_handle_t>, ) -> Self
Internal implementation for storing column family handles
Sourcefn drop_all_cfs_internal(&mut self)
fn drop_all_cfs_internal(&mut self)
Internal implementation for dropping column family handles
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.