Skip to main content

ScriptHost

Trait ScriptHost 

Source
pub trait ScriptHost:
    Send
    + Sync
    + 'static {
    // Required method
    fn call<'a>(
        &'a self,
        operation: &'a str,
        args: Vec<ScriptValue>,
        control: InvocationControl,
    ) -> HostFuture<'a>;
}
Expand description

Host implementations own trusted tenant/Space/connection context. They must allowlist operations, authorize each call, and bound IO before allocating it. Dropping these futures releases temporary resources; it is not compensation.

Required Methods§

Source

fn call<'a>( &'a self, operation: &'a str, args: Vec<ScriptValue>, control: InvocationControl, ) -> HostFuture<'a>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§