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]

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]

This is supported on crate feature 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]

This is supported on crate feature 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.