referrerpolicy=no-referrer-when-downgrade
sp_core::traits

Trait FetchRuntimeCode

Source
pub trait FetchRuntimeCode {
    // Required method
    fn fetch_runtime_code(&self) -> Option<Cow<'_, [u8]>>;
}
Expand description

Something that can fetch the runtime :code.

Required Methods§

Source

fn fetch_runtime_code(&self) -> Option<Cow<'_, [u8]>>

Fetch the runtime :code.

If the :code could not be found/not available, None should be returned.

Implementors§

Source§

impl FetchRuntimeCode for NoneFetchRuntimeCode

Source§

impl<'a> FetchRuntimeCode for RuntimeCode<'a>

Source§

impl<'a> FetchRuntimeCode for WrappedRuntimeCode<'a>

impl<'a, EHF> FetchRuntimeCode for GenesisConfigBuilderRuntimeCaller<'a, EHF>
where EHF: HostFunctions,

impl<'a, B: Backend<H>, H: Hasher> FetchRuntimeCode for BackendRuntimeCode<'a, B, H>