Trait sc_executor::RuntimeInfo
source · [−]pub trait RuntimeInfo {
fn native_version(&self) -> &NativeVersion;
fn runtime_version(
&self,
ext: &mut dyn Externalities,
runtime_code: &RuntimeCode<'_>
) -> Result<RuntimeVersion>;
}
Expand description
Provides runtime information.
Required methods
fn native_version(&self) -> &NativeVersion
fn native_version(&self) -> &NativeVersion
Native runtime information.
fn runtime_version(
&self,
ext: &mut dyn Externalities,
runtime_code: &RuntimeCode<'_>
) -> Result<RuntimeVersion>
fn runtime_version(
&self,
ext: &mut dyn Externalities,
runtime_code: &RuntimeCode<'_>
) -> Result<RuntimeVersion>
Extract RuntimeVersion
of the given runtime_code
.