Struct sp_core::traits::RuntimeCode [−][src]
pub struct RuntimeCode<'a> {
pub code_fetcher: &'a dyn FetchRuntimeCode,
pub heap_pages: Option<u64>,
pub hash: Vec<u8>,
}The Wasm code of a Substrate runtime.
Fields
code_fetcher: &'a dyn FetchRuntimeCodeThe 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
impl<'a> RuntimeCode<'a>[src]
impl<'a> RuntimeCode<'a>[src]Trait Implementations
impl<'a> Clone for RuntimeCode<'a>[src]
impl<'a> Clone for RuntimeCode<'a>[src]fn clone(&self) -> RuntimeCode<'a>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a> FetchRuntimeCode for RuntimeCode<'a>[src]
impl<'a> FetchRuntimeCode for RuntimeCode<'a>[src]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
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]