pub struct DaemonClient { /* private fields */ }Expand description
Client for communicating with the Ghidra daemon.
Implementations§
Source§impl DaemonClient
impl DaemonClient
Sourcepub async fn connect(project_path: &Path) -> Result<Self>
pub async fn connect(project_path: &Path) -> Result<Self>
Connect to the running daemon for a specific project.
Sourcepub async fn send_command(&mut self, command: Command) -> Result<Value>
pub async fn send_command(&mut self, command: Command) -> Result<Value>
Send a command and wait for the response.
Sourcepub async fn clear_cache(&mut self) -> Result<()>
pub async fn clear_cache(&mut self) -> Result<()>
Clear the result cache.
Sourcepub async fn list_functions(
&mut self,
limit: Option<usize>,
filter: Option<String>,
) -> Result<Value>
pub async fn list_functions( &mut self, limit: Option<usize>, filter: Option<String>, ) -> Result<Value>
List functions.
Sourcepub async fn list_imports(&mut self) -> Result<Value>
pub async fn list_imports(&mut self) -> Result<Value>
List imports.
Sourcepub async fn list_exports(&mut self) -> Result<Value>
pub async fn list_exports(&mut self) -> Result<Value>
List exports.
Sourcepub async fn memory_map(&mut self) -> Result<Value>
pub async fn memory_map(&mut self) -> Result<Value>
Get memory map.
Sourcepub async fn program_info(&mut self) -> Result<Value>
pub async fn program_info(&mut self) -> Result<Value>
Get program info.
Sourcepub async fn xrefs_to(&mut self, address: String) -> Result<Value>
pub async fn xrefs_to(&mut self, address: String) -> Result<Value>
Get cross-references to an address.
Sourcepub async fn xrefs_from(&mut self, address: String) -> Result<Value>
pub async fn xrefs_from(&mut self, address: String) -> Result<Value>
Get cross-references from an address.
Sourcepub async fn execute_cli_json(&mut self, command_json: String) -> Result<Value>
pub async fn execute_cli_json(&mut self, command_json: String) -> Result<Value>
Execute a CLI command through the daemon (takes pre-serialized JSON).
Auto Trait Implementations§
impl Freeze for DaemonClient
impl RefUnwindSafe for DaemonClient
impl Send for DaemonClient
impl Sync for DaemonClient
impl Unpin for DaemonClient
impl UnwindSafe for DaemonClient
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