pub trait Handler: Send + Sync {
// Required method
fn call(
&self,
ctx: &Context,
input: Value,
) -> Result<Value, CapabilityError>;
}Expand description
The JSON boundary of a handler.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".