pub trait HookHandler: Send + Sync {
// Required methods
fn event_type(&self) -> &'static str;
fn handle(&self, input: &str) -> Result<String>;
}Expand description
Trait for hook handlers.
Required Methods§
Sourcefn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
The hook event type this handler processes.