Trait Callable

Source
pub trait Callable {
    // Required method
    fn call<Output: SupportedReturnType>(
        &mut self,
        func_name: &str,
        args: impl ParameterTuple,
    ) -> Result<Output>;
}
Expand description

Trait used by the macros to paper over the differences between hyperlight and hyperlight-wasm Trait used by the macros to paper over the differences between hyperlight and hyperlight-wasm

Required Methods§

Source

fn call<Output: SupportedReturnType>( &mut self, func_name: &str, args: impl ParameterTuple, ) -> Result<Output>

Call a guest function dynamically

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§