pub struct HostFunctions;Expand description
Aggregate of all host functions exposed by this crate.
Plug this into your node’s HostFunctions tuple alongside the other host-function sets
(e.g. [sp_io::SubstrateHostFunctions]). At runtime, register a VirtManagerExt
wrapping your backend on the externalities before any of these host functions are
invoked — without it, every call panics. All other interaction with the virtualization
machinery should go through Module, Instance, and Execution.
Provides implementations for the extern host functions.
Trait Implementations§
Source§impl HostFunctions for HostFunctions
Available on non-substrate_runtime only.
impl HostFunctions for HostFunctions
Available on non-
substrate_runtime only.Source§fn host_functions() -> Vec<&'static dyn Function>
fn host_functions() -> Vec<&'static dyn Function>
Returns the host functions
Self provides.Auto Trait Implementations§
impl Freeze for HostFunctions
impl RefUnwindSafe for HostFunctions
impl Send for HostFunctions
impl Sync for HostFunctions
impl Unpin for HostFunctions
impl UnsafeUnpin for HostFunctions
impl UnwindSafe for HostFunctions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more