pub struct Hooks2 { /* private fields */ }Implementations§
Source§impl Hooks2
impl Hooks2
Sourcepub fn ensure_init(&self)
pub fn ensure_init(&self)
Load the plugin and initialize it if it hasn’t been loaded already.
pub fn add_callback_on_process_start( &self, callback: extern "C" fn(cpu: &mut CPUState, procname: *const c_char, asid: target_ulong, pid: target_pid_t), )
pub fn remove_callback_on_process_start( &self, callback: extern "C" fn(cpu: &mut CPUState, procname: *const c_char, asid: target_ulong, pid: target_pid_t), )
pub fn add_callback_on_process_end( &self, callback: extern "C" fn(cpu: &mut CPUState, procname: *const c_char, asid: target_ulong, pid: target_pid_t), )
pub fn remove_callback_on_process_end( &self, callback: extern "C" fn(cpu: &mut CPUState, procname: *const c_char, asid: target_ulong, pid: target_pid_t), )
pub fn add_callback_on_thread_start( &self, callback: extern "C" fn(cpu: &mut CPUState, procname: *const c_char, asid: target_ulong, pid: target_pid_t, tid: target_pid_t), )
pub fn remove_callback_on_thread_start( &self, callback: extern "C" fn(cpu: &mut CPUState, procname: *const c_char, asid: target_ulong, pid: target_pid_t, tid: target_pid_t), )
pub fn add_callback_on_thread_end( &self, callback: extern "C" fn(cpu: &mut CPUState, procname: *const c_char, asid: target_ulong, pid: target_pid_t, tid: target_pid_t), )
pub fn remove_callback_on_thread_end( &self, callback: extern "C" fn(cpu: &mut CPUState, procname: *const c_char, asid: target_ulong, pid: target_pid_t, tid: target_pid_t), )
pub fn add_callback_on_mmap_updated( &self, callback: extern "C" fn(cpu: &mut CPUState, libname: *const c_char, base: target_ulong, size: target_ulong), )
pub fn remove_callback_on_mmap_updated( &self, callback: extern "C" fn(cpu: &mut CPUState, libname: *const c_char, base: target_ulong, size: target_ulong), )
Auto Trait Implementations§
impl Freeze for Hooks2
impl RefUnwindSafe for Hooks2
impl Send for Hooks2
impl Sync for Hooks2
impl Unpin for Hooks2
impl UnwindSafe for Hooks2
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