hyperlight-host 0.17.0

A lightweight Virtual Machine Manager that can be hosted in an application to safely run untrusted or code within a VM partition with very low latency and overhead.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: Apache-2.0
// Copyright 2025 The Hyperlight Authors.

use crate::Result;
use crate::func::{ParameterTuple, SupportedReturnType};

/// Trait used by the macros to paper over the differences between hyperlight and hyperlight-wasm
pub trait Callable {
    /// Call a guest function dynamically
    fn call<Output: SupportedReturnType>(
        &mut self,
        func_name: &str,
        args: impl ParameterTuple,
    ) -> Result<Output>;
}