pub trait HookModule: Send + Sync {
// Required methods
fn id(&self) -> &str;
fn handle(
&self,
event: &HookEvent,
ctx: &ModuleContext,
) -> Result<ModuleOutput, String>;
}Required Methods§
fn id(&self) -> &str
fn handle( &self, event: &HookEvent, ctx: &ModuleContext, ) -> Result<ModuleOutput, String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".