pub struct WorkerConfig {
pub ghidra_install_dir: PathBuf,
pub project_dir: PathBuf,
pub project_name: String,
pub bootstrap_program: String,
pub script_dir: PathBuf,
pub script_name: String,
pub max_heap: Option<String>,
pub boot_timeout: Duration,
}Fields§
§ghidra_install_dir: PathBufRoot of the Ghidra install (contains support/analyzeHeadless).
project_dir: PathBufDirectory that holds the <project_name>.gpr / .rep.
project_name: String§bootstrap_program: StringBare program file name for the -process bootstrap filter (e.g. add.exe), NOT a VFS path:
Ghidra rejects a /-prefixed value with “invalid filename specified” (real-Ghidra e2e). The
containing folder is pinned by the project location, not this field (D1).
script_dir: PathBufDirectory the worker .java was extracted to (passed via -scriptPath).
script_name: StringThe worker script filename (e.g. GhidraMcpWorker.java).
max_heap: Option<String>Optional JVM max-heap (-Xmx…) forwarded via env; None = Ghidra default.
boot_timeout: DurationHow long the host waits for a valid worker handshake before giving up.
Implementations§
Source§impl WorkerConfig
impl WorkerConfig
Sourcepub fn analyze_headless_path(&self) -> PathBuf
pub fn analyze_headless_path(&self) -> PathBuf
Path to the headless launcher for this platform.
Trait Implementations§
Source§impl Clone for WorkerConfig
impl Clone for WorkerConfig
Source§fn clone(&self) -> WorkerConfig
fn clone(&self) -> WorkerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WorkerConfig
impl RefUnwindSafe for WorkerConfig
impl Send for WorkerConfig
impl Sync for WorkerConfig
impl Unpin for WorkerConfig
impl UnsafeUnpin for WorkerConfig
impl UnwindSafe for WorkerConfig
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