pub struct ProcessConfig {
pub rustc_path: String,
pub python_path: String,
pub node_path: String,
pub max_output_bytes: usize,
}Expand description
Configuration for ProcessBackend.
Provides paths to language runtimes. Defaults use bare command names
that rely on PATH resolution.
§Example
use adk_sandbox::ProcessConfig;
let config = ProcessConfig {
rustc_path: "/usr/local/bin/rustc".to_string(),
..ProcessConfig::default()
};Fields§
§rustc_path: StringPath to the Rust compiler. Default: "rustc".
python_path: StringPath to the Python 3 interpreter. Default: "python3".
node_path: StringPath to the Node.js runtime. Default: "node".
max_output_bytes: usizeMaximum bytes retained from each of stdout and stderr. Default: 1 MiB.
The limit is applied as the pipes are read, so it bounds memory rather than only the reported output. Excess is drained and discarded, and the returned text carries a truncation notice.
Trait Implementations§
Source§impl Clone for ProcessConfig
impl Clone for ProcessConfig
Source§impl Debug for ProcessConfig
impl Debug for ProcessConfig
Auto Trait Implementations§
impl Freeze for ProcessConfig
impl RefUnwindSafe for ProcessConfig
impl Send for ProcessConfig
impl Sync for ProcessConfig
impl Unpin for ProcessConfig
impl UnsafeUnpin for ProcessConfig
impl UnwindSafe for ProcessConfig
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