RuntimeApiTypeInfo

Trait RuntimeApiTypeInfo 

Source
pub trait RuntimeApiTypeInfo {
    type TypeId: Clone;

    // Required method
    fn runtime_api_info(
        &self,
        trait_name: &str,
        method_name: &str,
    ) -> Result<RuntimeApiInfo<'_, Self::TypeId>, RuntimeApiInfoError<'_>>;
}
Expand description

This can be implemented for anything capable of providing Runtime API type information. It is implemented for newer versions of frame-metadata (V15 and above).

Required Associated Types§

Source

type TypeId: Clone

The type of type IDs that we are using to obtain type information.

Required Methods§

Source

fn runtime_api_info( &self, trait_name: &str, method_name: &str, ) -> Result<RuntimeApiInfo<'_, Self::TypeId>, RuntimeApiInfoError<'_>>

Get the information needed to encode/decode a specific Runtime API call

Implementations on Foreign Types§

Source§

impl RuntimeApiTypeInfo for RuntimeMetadataV15

Source§

type TypeId = u32

Source§

fn runtime_api_info( &self, trait_name: &str, method_name: &str, ) -> Result<RuntimeApiInfo<'_, Self::TypeId>, RuntimeApiInfoError<'_>>

Source§

impl RuntimeApiTypeInfo for RuntimeMetadataV16

Source§

type TypeId = u32

Source§

fn runtime_api_info( &self, trait_name: &str, method_name: &str, ) -> Result<RuntimeApiInfo<'_, Self::TypeId>, RuntimeApiInfoError<'_>>

Source§

impl RuntimeApiTypeInfo for TypeRegistry

Source§

type TypeId = LookupName

Source§

fn runtime_api_info( &self, trait_name: &str, method_name: &str, ) -> Result<RuntimeApiInfo<'_, Self::TypeId>, RuntimeApiInfoError<'_>>

Source§

impl<'a> RuntimeApiTypeInfo for TypeRegistrySet<'a>

Source§

type TypeId = LookupName

Source§

fn runtime_api_info( &self, trait_name: &str, method_name: &str, ) -> Result<RuntimeApiInfo<'_, Self::TypeId>, RuntimeApiInfoError<'_>>

Implementors§