#[repr(C)]pub struct Hook {
pub addr: target_ulong,
pub asid: target_ulong,
pub cb: HooksPandaCallback,
pub km: KernelMode,
pub enabled: bool,
pub sym: Symbol,
pub context: *mut c_void,
}Expand description
A hook provided by the hooks plugin, describing the address, asid/process, symbol, etc to hook.
Fields§
§addr: target_ulongThe address to hook
asid: target_ulongThe address space identifier to hook, with zero representing any asid. Defaults to zero.
cb: HooksPandaCallbackThe callback to trigger when the hook is hit
km: KernelModeWhether to hook in kernel mode only, user mode only, or neither. Defaults to neither.
enabled: boolWhether the hook is enabled. Defaults to true
sym: SymbolThe symbol of the function to hook
context: *mut c_voidUser-provided context variable
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hook
impl RefUnwindSafe for Hook
impl !Send for Hook
impl !Sync for Hook
impl Unpin 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