Trait polkadot_service::ConstructRuntimeApi [−][src]
pub trait ConstructRuntimeApi<Block, C> where
Block: Block,
C: CallApiAt<Block>, {
type RuntimeApi: ApiExt<Block>;
fn construct_runtime_api(call: &'a C) -> ApiRef<'a, Self::RuntimeApi>;
}
Expand description
Something that can be constructed to a runtime api.
Associated Types
type RuntimeApi: ApiExt<Block>
type RuntimeApi: ApiExt<Block>
The actual runtime api that will be constructed.
Required methods
fn construct_runtime_api(call: &'a C) -> ApiRef<'a, Self::RuntimeApi>
fn construct_runtime_api(call: &'a C) -> ApiRef<'a, Self::RuntimeApi>
Construct an instance of the runtime api.