[][src]Trait sp_version::GetRuntimeVersion

pub trait GetRuntimeVersion<Block: BlockT> {
    pub fn native_version(&self) -> &NativeVersion;
pub fn runtime_version(
        &self,
        at: &BlockId<Block>
    ) -> Result<RuntimeVersion, String>; }

Something that can provide the runtime version at a given block and the native runtime version.

Required methods

pub fn native_version(&self) -> &NativeVersion[src]

Returns the version of the native runtime.

pub fn runtime_version(
    &self,
    at: &BlockId<Block>
) -> Result<RuntimeVersion, String>
[src]

Returns the version of runtime at the given block.

Loading content...

Implementations on Foreign Types

impl<T: GetRuntimeVersion<Block>, Block: BlockT> GetRuntimeVersion<Block> for Arc<T>[src]

Loading content...

Implementors

Loading content...