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§
Required Methods§
Sourcefn runtime_api_info(
&self,
trait_name: &str,
method_name: &str,
) -> Result<RuntimeApiInfo<'_, Self::TypeId>, RuntimeApiInfoError<'_>>
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