pub trait ChainStorage<Primitives: FullNodePrimitives>: Send + Sync {
// Required method
fn writer<TX, Types>(
&self,
) -> impl ChainStorageWriter<DatabaseProvider<TX, Types>, Primitives>
where TX: DbTxMut + DbTx + 'static,
Types: NodeTypes<Primitives = Primitives>;
}
Expand description
Trait that provides access to implementations of ChainStorage
Required Methods§
Sourcefn writer<TX, Types>(
&self,
) -> impl ChainStorageWriter<DatabaseProvider<TX, Types>, Primitives>where
TX: DbTxMut + DbTx + 'static,
Types: NodeTypes<Primitives = Primitives>,
fn writer<TX, Types>(
&self,
) -> impl ChainStorageWriter<DatabaseProvider<TX, Types>, Primitives>where
TX: DbTxMut + DbTx + 'static,
Types: NodeTypes<Primitives = Primitives>,
Provides access to the chain writer.
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.