Struct frida_gum::interceptor::Interceptor [−][src]
pub struct Interceptor<'a> { /* fields omitted */ }
Function hooking engine interface.
Implementations
impl<'a> Interceptor<'a>
[src]
pub fn obtain<'b>(_gum: &'b Gum) -> Interceptor<'_> where
'b: 'a,
[src]
'b: 'a,
Obtain an Interceptor handle, ensuring that the runtime is properly initialized. This may be called as many times as needed, and results in a no-op if the Interceptor is already initialized.
pub fn attach<I: InvocationListener>(
&mut self,
f: NativePointer,
listener: &mut I
) -> NativePointer
[src]
&mut self,
f: NativePointer,
listener: &mut I
) -> NativePointer
invocation-listener
only.Attach a listener to the beginning of a function address.
Safety
The provided address must point to the start of a function in a valid memory region.
pub fn detach(&mut self, listener: NativePointer)
[src]
invocation-listener
only.Detach an attached listener.
Safety
The listener must have been attached with Interceptor::attach()
.
pub fn begin_transaction(&mut self)
[src]
Begin an Interceptor
transaction. This may improve performance if
applying many hooks.
Safety
After placing hooks, the transaction must be ended with Interceptor::end_transaction()
.
pub fn end_transaction(&mut self)
[src]
End an Interceptor
transaction. This must be called after placing hooks
if in a transaction started with Interceptor::begin_transaction()
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Interceptor<'a>
impl<'a> !Send for Interceptor<'a>
impl<'a> !Sync for Interceptor<'a>
impl<'a> Unpin for Interceptor<'a>
impl<'a> UnwindSafe for Interceptor<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,