pub struct SpawnSpec {
pub program: String,
pub args: Vec<String>,
pub timeout: Option<Duration>,
}Expand description
A SpawnSpec is the configuration for
AcpStdioPeer::spawn. The program and
args are the only required fields; the
rest take the obvious defaults.
Fields§
§program: StringThe program to run (e.g. "node").
args: Vec<String>The arguments (e.g. ["reference-agent.js"]).
timeout: Option<Duration>The default request timeout. None is
30s.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpawnSpec
impl RefUnwindSafe for SpawnSpec
impl Send for SpawnSpec
impl Sync for SpawnSpec
impl Unpin for SpawnSpec
impl UnsafeUnpin for SpawnSpec
impl UnwindSafe for SpawnSpec
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