pub struct HookWriter<'a> { /* private fields */ }Implementations§
Source§impl<'a> HookWriter<'a>
impl<'a> HookWriter<'a>
pub const fn new(hook_heap: &'a HookHeap) -> Self
pub const fn from_static() -> Self
pub unsafe fn write_hook( &self, module: Option<&CStr>, symbol: &CStr, destination: *mut u8, ) -> Result<Hook<'a>, ()>
pub unsafe fn write_hook_fn_ptr( &self, target: NonNull<c_void>, destination: NonNull<c_void>, ) -> Result<Hook<'a>, ()>
pub unsafe fn write_hook_table( &self, sym_addr: NonNull<c_void>, destination_fn: NonNull<c_void>, ) -> Result<HookData<'a>, ()>
Auto Trait Implementations§
impl<'a> Freeze for HookWriter<'a>
impl<'a> !RefUnwindSafe for HookWriter<'a>
impl<'a> Send for HookWriter<'a>
impl<'a> Sync for HookWriter<'a>
impl<'a> Unpin for HookWriter<'a>
impl<'a> !UnwindSafe for HookWriter<'a>
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