pub struct ServerConfig {
pub ghidra_install_dir: PathBuf,
pub project_dir: PathBuf,
pub project_name: String,
pub bootstrap_program: String,
pub bootstrap_program_path: String,
pub max_heap: Option<String>,
pub boot_timeout: Duration,
pub rpc_deadline: Duration,
pub warming_deadline: Duration,
}Expand description
Fully-resolved, validated server configuration.
Fields§
§ghidra_install_dir: PathBuf§project_dir: PathBuf§project_name: String§bootstrap_program: String§bootstrap_program_path: StringVFS path of the bootstrap program (the /-prefixed form attach_program needs). Defaults to
/<bootstrap_program> but may be overridden when the program lives in a subfolder.
max_heap: Option<String>§boot_timeout: Duration§rpc_deadline: DurationServer per-request RPC deadline (spec §4.7: worker 30s < this < client ~60s). Default 45s.
warming_deadline: DurationHow long a cold tool call waits on boot before returning WORKER_WARMING (spec §4.7). Default 8s.
Implementations§
Source§impl ServerConfig
impl ServerConfig
Sourcepub fn worker_config(&self, script_dir: PathBuf) -> WorkerConfig
pub fn worker_config(&self, script_dir: PathBuf) -> WorkerConfig
Build the M0 WorkerConfig for boot_worker. script_dir is the per-version dir (Task 9).
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
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 ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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