binaryninja::main_thread

Trait MainThreadHandler

source
pub trait MainThreadHandler: Sized {
    // Required method
    fn add_action(&self, _view: Ref<MainThreadAction>);

    // Provided methods
    unsafe extern "C" fn cb_add_action(
        ctxt: *mut c_void,
        action: *mut BNMainThreadAction,
    ) { ... }
    fn register(self) { ... }
}
Expand description

The trait required for receiving main thread actions

Required Methods§

Provided Methods§

source

unsafe extern "C" fn cb_add_action( ctxt: *mut c_void, action: *mut BNMainThreadAction, )

source

fn register(self)

Register the main thread handler. Leaking Self in the process.

NOTE: This MUST be called from within the main thread.

Object Safety§

This trait is not object safe.

Implementors§