pub struct Breakpoint {
pub original_byte: u8,
pub handlers: Vec<HookHandler>,
pub module_name: String,
pub export_name: String,
}Expand description
A breakpoint object Contains information about the hooked function, and the hooking function
Fields§
§original_byte: u8Original byte of the breakpoint. Used to restore the process after removal of the breakpoint
handlers: Vec<HookHandler>Hook handler functions. When the breakpoint is called, these are executed in registration order
module_name: StringHooked function module name
export_name: StringHooked function export name
Implementations§
Source§impl Breakpoint
impl Breakpoint
Sourcepub fn new(
original_byte: u8,
handler: HookHandler,
module: String,
export: String,
) -> Self
pub fn new( original_byte: u8, handler: HookHandler, module: String, export: String, ) -> Self
Creates a new breakpoint
Sourcepub fn push_handler(&mut self, handler: HookHandler)
pub fn push_handler(&mut self, handler: HookHandler)
Adds a handler to an existing breakpoint
Auto Trait Implementations§
impl !RefUnwindSafe for Breakpoint
impl !Sync for Breakpoint
impl !UnwindSafe for Breakpoint
impl Freeze for Breakpoint
impl Send for Breakpoint
impl Unpin for Breakpoint
impl UnsafeUnpin for Breakpoint
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