sp_api

Trait RuntimeApiInfo

Source
pub trait RuntimeApiInfo {
    const ID: [u8; 8];
    const VERSION: u32;
}
Expand description

Something that provides information about a runtime api.

Required Associated Constants§

Source

const ID: [u8; 8]

The identifier of the runtime api.

Source

const VERSION: u32

The version of the runtime api.

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.

Implementors§

Source§

impl<Block: BlockT> RuntimeApiInfo for dyn Core<Block>

Source§

const ID: [u8; 8]

Source§

const VERSION: u32 = 5u32

Source§

impl<Block: BlockT> RuntimeApiInfo for dyn Metadata<Block>

Source§

const ID: [u8; 8]

Source§

const VERSION: u32 = 2u32