pub trait AgentChild: Send + Debug {
// Required methods
fn id(&self) -> u32;
fn wait(&mut self) -> Result<ExitStatus>;
fn try_wait(&mut self) -> Result<Option<ExitStatus>>;
}Expand description
Trait for interacting with a spawned agent child process.
This trait abstracts the std::process::Child operations needed for
agent monitoring and output collection. It allows mocking in tests.
Required Methods§
Sourcefn wait(&mut self) -> Result<ExitStatus>
fn wait(&mut self) -> Result<ExitStatus>
Wait for the process to complete and return the exit status.
Sourcefn try_wait(&mut self) -> Result<Option<ExitStatus>>
fn try_wait(&mut self) -> Result<Option<ExitStatus>>
Try to wait without blocking.