Skip to main content

AgentChild

Trait AgentChild 

Source
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§

Source

fn id(&self) -> u32

Get the process ID.

Source

fn wait(&mut self) -> Result<ExitStatus>

Wait for the process to complete and return the exit status.

Source

fn try_wait(&mut self) -> Result<Option<ExitStatus>>

Try to wait without blocking.

Implementors§