Trait sp_api::ConstructRuntimeApi [−][src]
Something that can be constructed to a runtime api.
Associated Types
type RuntimeApi: ApiExt<Block>
[src][−]
The actual runtime api that will be constructed.
Required methods
fn construct_runtime_api<'a>(call: &'a C) -> ApiRef<'a, Self::RuntimeApi>
[src][−]
Construct an instance of the runtime api.
Implementors
impl<Block: BlockT, C> ConstructRuntimeApi<Block, C> for RuntimeApi where
C: CallApiAt<Block> + 'static,
C::StateBackend: StateBackend<HashFor<Block>>,
impl<Block: BlockT, C> ConstructRuntimeApi<Block, C> for RuntimeApi where
C: CallApiAt<Block> + 'static,
C::StateBackend: StateBackend<HashFor<Block>>,