pub struct ToolOptions<'a> {
pub argv: &'a [String],
pub cwd: &'a Path,
pub env: &'a [(String, String)],
pub timeout: Duration,
pub max_output_bytes: u64,
pub mirror: bool,
pub cancel: &'a dyn Fn() -> bool,
}Expand description
How to run one approved call.
Fields§
§argv: &'a [String]§cwd: &'a Path§env: &'a [(String, String)]Added to the inherited environment (the START_* variables).
timeout: Duration§max_output_bytes: u64§mirror: boolMirror the output to this process’s stdout/stderr.
cancel: &'a dyn Fn() -> boolPolled while the call runs; true stops its process group.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ToolOptions<'a>
impl<'a> !Send for ToolOptions<'a>
impl<'a> !Sync for ToolOptions<'a>
impl<'a> !UnwindSafe for ToolOptions<'a>
impl<'a> Freeze for ToolOptions<'a>
impl<'a> Unpin for ToolOptions<'a>
impl<'a> UnsafeUnpin for ToolOptions<'a>
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