Skip to main content

new

Method
This is a method of the HookDefinition class in the hooks module.
Create a new hook definition

Signature

def new(
        event: HookEvent,
        func: impl Fn(&HookInput) -> HookResult + Send + Sync + 'static,
    ) -> Self

Parameters

event
HookEvent
required
No description available.
func
impl Fn(&HookInput
required
No description available.

Returns

Returns
HookResult + Send + Sync + 'static, ) -> Self
The result of the operation.