Type Alias tor_persist::DynStorageHandle
source · pub type DynStorageHandle<T> = Arc<dyn StorageHandle<T> + Send + Sync + 'static>;
Expand description
Type wrapper for a reference-counted dyn
StorageHandle
.
Most users of this crate will want to access storage via a handle
of this kind, so that they don’t have to parameterize over
StateMgr
. The cost of using a fat pointer here should be
pretty small compared to the overhead of persistent storage in
general.
Aliased Type§
struct DynStorageHandle<T> { /* private fields */ }