Skip to main content

CapabilityHandler

Trait CapabilityHandler 

Source
pub trait CapabilityHandler {
    // Required method
    fn call(&mut self, method: &str, input: UiValue) -> Result<UiValue, String>;
}

Required Methods§

Source

fn call(&mut self, method: &str, input: UiValue) -> Result<UiValue, String>

Execute a schema-validated capability method.

§Errors

Returns a human-readable handler error. The registry validates the returned value against the declared output schema.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§