[]Trait polymesh::service::ProvideRuntimeApi

pub trait ProvideRuntimeApi<Block> where
    Block: Block, 
{ type Api: ApiExt<Block>; pub fn runtime_api(&'a self) -> ApiRef<'a, Self::Api>; }

Something that provides a runtime api.

Associated Types

type Api: ApiExt<Block>

The concrete type that provides the api.

Loading content...

Required methods

pub fn runtime_api(&'a self) -> ApiRef<'a, Self::Api>

Returns the runtime api. The returned instance will keep track of modifications to the storage. Any successful call to an api function, will commit its changes to an internal buffer. Otherwise, the modifications will be discarded. The modifications will not be applied to the storage, even on a commit.

Loading content...

Implementations on Foreign Types

impl<B, E, Block, RA> ProvideRuntimeApi<Block> for Client<B, E, Block, RA> where
    Block: Block,
    E: CallExecutor<Block, Backend = B> + Send + Sync,
    B: Backend<Block>,
    RA: ConstructRuntimeApi<Block, Client<B, E, Block, RA>>, 

type Api = <RA as ConstructRuntimeApi<Block, Client<B, E, Block, RA>>>::RuntimeApi

Loading content...

Implementors

Loading content...