Skip to main content

ExtensionHandler

Trait ExtensionHandler 

Source
pub trait ExtensionHandler: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn handle(&self, ctx: &mut HookContext) -> HookResult<()>;
}
Expand description

扩展点处理器 trait

Required Methods§

Source

fn name(&self) -> &str

处理器名称

Source

fn handle(&self, ctx: &mut HookContext) -> HookResult<()>

处理扩展点事件

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§