[][src]Trait sp_api::ConstructRuntimeApi

pub trait ConstructRuntimeApi<Block: BlockT, C: CallApiAt<Block>> {
    type RuntimeApi: ApiExt<Block>;
    pub fn construct_runtime_api<'a>(
        call: &'a C
    ) -> ApiRef<'a, Self::RuntimeApi>; }

Something that can be constructed to a runtime api.

Associated Types

type RuntimeApi: ApiExt<Block>[src]

The actual runtime api that will be constructed.

Loading content...

Required methods

pub fn construct_runtime_api<'a>(call: &'a C) -> ApiRef<'a, Self::RuntimeApi>[src]

Construct an instance of the runtime api.

Loading content...

Implementors

Loading content...