pub trait RuntimeApiTypeInfo {
type TypeId: Clone;
// Required methods
fn runtime_api_info(
&self,
trait_name: &str,
method_name: &str,
) -> Result<RuntimeApiInfo<'_, Self::TypeId>, RuntimeApiInfoError<'_>>;
fn runtime_apis(&self) -> impl Iterator<Item = Entry<'_>>;
// Provided method
fn runtime_apis_in_trait(
&self,
trait_name: &str,
) -> impl Iterator<Item = Cow<'_, str>> { ... }
}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
Sourcefn runtime_apis(&self) -> impl Iterator<Item = Entry<'_>>
fn runtime_apis(&self) -> impl Iterator<Item = Entry<'_>>
Iterate over all of the available Runtime APIs.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.