pub trait ConstructRuntimeApi<Block, C>
where Block: Block, C: CallApiAt<Block>,
{ type RuntimeApi: ApiExt<Block>; // Required method fn construct_runtime_api(call: &C) -> ApiRef<'_, Self::RuntimeApi>; }
Expand description

Something that can be constructed to a runtime api.

Required Associated Types§

source

type RuntimeApi: ApiExt<Block>

The actual runtime api that will be constructed.

Required Methods§

source

fn construct_runtime_api(call: &C) -> ApiRef<'_, Self::RuntimeApi>

Construct an instance of the runtime api.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<Block, C> ConstructRuntimeApi<Block, C> for RuntimeApi
where Block: Block, C: CallApiAt<Block> + 'static,

§

type RuntimeApi = RuntimeApiImpl<Block, C>

§

fn construct_runtime_api<'a>( call: &'a C ) -> ApiRef<'a, <RuntimeApi as ConstructRuntimeApi<Block, C>>::RuntimeApi>

§

impl<Block, C> ConstructRuntimeApi<Block, C> for RuntimeApi
where Block: Block, C: CallApiAt<Block> + 'static,

§

type RuntimeApi = RuntimeApiImpl<Block, C>

§

fn construct_runtime_api<'a>( call: &'a C ) -> ApiRef<'a, <RuntimeApi as ConstructRuntimeApi<Block, C>>::RuntimeApi>

Implementors§

source§

impl<Block: BlockT, C> ConstructRuntimeApi<Block, C> for polkadot_service::RuntimeApi
where C: CallApiAt<Block> + 'static,

§

type RuntimeApi = RuntimeApiImpl<Block, C>