Skip to main content

InvokeHandler

Trait InvokeHandler 

Source
pub trait InvokeHandler:
    Send
    + Sync
    + Debug {
    // Required method
    fn invoke(&self, capability: &str, input: &Value) -> Result<Value, String>;
}
Expand description

消费方实现此 trait 处理 Invoke 请求。 RillML runtime 不提供默认实现。

Required Methods§

Source

fn invoke(&self, capability: &str, input: &Value) -> Result<Value, String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§