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, InvokeError>;
}
Expand description

Consumers can implement this trait to add business-specific invocation logic.

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§