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