pub enum HostCall {
ArrayCall,
Builtin(BuiltinFunctionIndex),
}Expand description
Enumeration of all possible ways that wasm may execute code in the host.
This type is intended to be serialized into a 32-bit index (or smaller) and is used by Pulley for example to identify how transitions from the guest to the host are performed.
Variants§
ArrayCall
An “array call” is being done which means that the wasm is calling the
host using the array calling convention (e.g. VMArrayCallNative).
Builtin(BuiltinFunctionIndex)
A builtin function, e.g. for memory.grow, is being called. Each
builtin has its own ABI.
Implementations§
Trait Implementations§
Source§impl From<BuiltinFunctionIndex> for HostCall
impl From<BuiltinFunctionIndex> for HostCall
Source§fn from(idx: BuiltinFunctionIndex) -> HostCall
fn from(idx: BuiltinFunctionIndex) -> HostCall
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HostCall
impl RefUnwindSafe for HostCall
impl Send for HostCall
impl Sync for HostCall
impl Unpin for HostCall
impl UnwindSafe for HostCall
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