pub enum HookKind {
Callback(HookCallback),
Function(HookFunctionFactory),
}Expand description
Executable SDK hook backend.
Variants§
Callback(HookCallback)
Reuse the same callback for every matching hook dispatch.
Function(HookFunctionFactory)
Build a callback per dispatch.
Implementations§
Source§impl HookKind
impl HookKind
Sourcepub fn handler_type(&self) -> HookHandlerType
pub fn handler_type(&self) -> HookHandlerType
Hook handler type reported in run summaries.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HookKind
impl !UnwindSafe for HookKind
impl Freeze for HookKind
impl Send for HookKind
impl Sync for HookKind
impl Unpin for HookKind
impl UnsafeUnpin for HookKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more