pub struct Hook { /* private fields */ }Expand description
Represents an installed hook
Implementations§
Source§impl Hook
impl Hook
Sourcepub fn trampoline(&self) -> usize
pub fn trampoline(&self) -> usize
Sourcepub unsafe fn trampoline_as<F>(&self) -> Fwhere
F: Copy,
pub unsafe fn trampoline_as<F>(&self) -> Fwhere
F: Copy,
Sourcepub unsafe fn call_original<T, F, R>(&self, callback: F) -> R
pub unsafe fn call_original<T, F, R>(&self, callback: F) -> R
Sourcepub fn verify_integrity(&self) -> bool
pub fn verify_integrity(&self) -> bool
Verifies that the hook has not been tampered with
§Returns
bool-trueif the hook is intact,falseif it has been modified
Auto Trait Implementations§
impl Freeze for Hook
impl RefUnwindSafe for Hook
impl Send for Hook
impl Sync for Hook
impl Unpin for Hook
impl UnsafeUnpin for Hook
impl UnwindSafe for Hook
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