diversion 0.2.0

Ergonomic function hooks for Windows and Linux
Documentation
1
2
3
4
5
6
7
8
9
use closure_ffi::traits::FnPtr;

use crate::{Result, installer::HookInstaller};

pub trait MakeHookInstaller: Send + Sync + 'static {
    type Installer<T: FnPtr + 'static>: HookInstaller<Target = T>;

    unsafe fn make<T: FnPtr + 'static>(&self, target: T) -> Result<Self::Installer<T>>;
}