pub trait HookRunner {
// Required method
fn run(&self, command: &str, ctx: &HookContext) -> Result<i32>;
}Expand description
Runs hook commands. Abstracted so tests can inject a fake.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".