pub struct HookDetector<'a> { /* private fields */ }Expand description
hook detection for a module
Implementations§
Source§impl<'a> HookDetector<'a>
impl<'a> HookDetector<'a>
Sourcepub fn new(module: &'a Module<'a>) -> Result<Self>
pub fn new(module: &'a Module<'a>) -> Result<Self>
create detector for module, attempting to load clean copy from disk
Sourcepub fn with_clean_copy(module: &'a Module<'a>, clean_copy: Vec<u8>) -> Self
pub fn with_clean_copy(module: &'a Module<'a>, clean_copy: Vec<u8>) -> Self
create detector with explicit clean copy bytes
Sourcepub fn without_clean_copy(module: &'a Module<'a>) -> Self
pub fn without_clean_copy(module: &'a Module<'a>) -> Self
create detector without clean copy (pattern detection only)
Sourcepub fn has_clean_copy(&self) -> bool
pub fn has_clean_copy(&self) -> bool
check if clean copy is available
Sourcepub fn scan_exports(&self) -> Result<Vec<HookInfo>>
pub fn scan_exports(&self) -> Result<Vec<HookInfo>>
scan all exports for hooks
Auto Trait Implementations§
impl<'a> Freeze for HookDetector<'a>
impl<'a> RefUnwindSafe for HookDetector<'a>
impl<'a> !Send for HookDetector<'a>
impl<'a> !Sync for HookDetector<'a>
impl<'a> Unpin for HookDetector<'a>
impl<'a> UnwindSafe for HookDetector<'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