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§
pub struct DynStorageHandle<T> { /* private fields */ }
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes