pub trait HookErased: Send + Sync {
// Required methods
fn id(&self) -> String;
fn config_as_json_erased(&self) -> Result<Value, Error>;
fn run_erased(
&self,
parmas: &RuntimeParams,
) -> Result<Box<dyn Captured>, CapsulaError>;
}Expand description
Engine-facing trait (object-safe, heterogenous)