HookErased

Trait HookErased 

Source
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)

Required Methods§

Implementors§

Source§

impl<T> HookErased for T
where T: Hook + Send + Sync + 'static,