RuntimeApiEntryInfo

Trait RuntimeApiEntryInfo 

Source
pub trait RuntimeApiEntryInfo {
    // Required method
    fn runtime_api_entries(&self) -> impl Iterator<Item = RuntimeApiEntry<'_>>;

    // Provided methods
    fn runtime_api_tuples(
        &self,
    ) -> impl Iterator<Item = (Cow<'_, str>, Cow<'_, str>)> { ... }
    fn runtime_apis_in_trait(
        &self,
        pallet: &str,
    ) -> impl Iterator<Item = Cow<'_, str>> { ... }
}
Expand description

This can be implemented for anything capable of providing information about the available Runtime Apis

Required Methods§

Source

fn runtime_api_entries(&self) -> impl Iterator<Item = RuntimeApiEntry<'_>>

Iterate over all of the available Runtime Apis, returning Entry as we go.

Provided Methods§

Source

fn runtime_api_tuples( &self, ) -> impl Iterator<Item = (Cow<'_, str>, Cow<'_, str>)>

Iterate over all of the available Runtime Apis, returning a pair of (trait_name, method_name) as we go.

Source

fn runtime_apis_in_trait( &self, pallet: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Iterate over all of the available Runtime Apis in a given trait.

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.

Implementations on Foreign Types§

Source§

impl RuntimeApiEntryInfo for RuntimeMetadataV15

Source§

fn runtime_api_entries(&self) -> impl Iterator<Item = RuntimeApiEntry<'_>>

Source§

fn runtime_apis_in_trait( &self, trait_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl RuntimeApiEntryInfo for RuntimeMetadataV16

Source§

fn runtime_api_entries(&self) -> impl Iterator<Item = RuntimeApiEntry<'_>>

Source§

fn runtime_apis_in_trait( &self, trait_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl RuntimeApiEntryInfo for TypeRegistry

Source§

fn runtime_api_entries(&self) -> impl Iterator<Item = RuntimeApiEntry<'_>>

Source§

fn runtime_apis_in_trait( &self, trait_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl<'a> RuntimeApiEntryInfo for TypeRegistrySet<'a>

Source§

fn runtime_api_entries(&self) -> impl Iterator<Item = RuntimeApiEntry<'_>>

Source§

fn runtime_apis_in_trait( &self, trait_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Implementors§