Struct sp_core::traits::RuntimeCode
source · pub struct RuntimeCode<'a> {
pub code_fetcher: &'a dyn FetchRuntimeCode,
pub heap_pages: Option<u64>,
pub hash: Vec<u8>,
}
Expand description
The Wasm code of a Substrate runtime.
Fields§
§code_fetcher: &'a dyn FetchRuntimeCode
The code fetcher that can be used to lazily fetch the code.
heap_pages: Option<u64>
The optional heap pages this code
should be executed with.
If None
are given, the default value of the executor will be used.
hash: Vec<u8>
The SCALE encoded hash of code
.
The hashing algorithm isn’t that important, as long as all runtime code instances use the same.
Implementations§
source§impl<'a> RuntimeCode<'a>
impl<'a> RuntimeCode<'a>
Trait Implementations§
source§impl<'a> Clone for RuntimeCode<'a>
impl<'a> Clone for RuntimeCode<'a>
source§fn clone(&self) -> RuntimeCode<'a>
fn clone(&self) -> RuntimeCode<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> FetchRuntimeCode for RuntimeCode<'a>
impl<'a> FetchRuntimeCode for RuntimeCode<'a>
source§impl<'a> PartialEq<RuntimeCode<'a>> for RuntimeCode<'a>
impl<'a> PartialEq<RuntimeCode<'a>> for RuntimeCode<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RuntimeCode<'a>
impl<'a> !Send for RuntimeCode<'a>
impl<'a> !Sync for RuntimeCode<'a>
impl<'a> Unpin for RuntimeCode<'a>
impl<'a> !UnwindSafe for RuntimeCode<'a>
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.