pub struct MuseChild { /* private fields */ }Expand description
The SDK-owned host process and its stdio handles.
Implementations§
Source§impl MuseChild
impl MuseChild
Sourcepub fn take_stdin(&mut self) -> Option<ChildStdin>
pub fn take_stdin(&mut self) -> Option<ChildStdin>
Take the host’s stdin for the connection transport.
Sourcepub fn take_stdout(&mut self) -> Option<ChildStdout>
pub fn take_stdout(&mut self) -> Option<ChildStdout>
Take the host’s stdout for the connection transport.
Sourcepub fn start_kill(&mut self) -> Result<()>
pub fn start_kill(&mut self) -> Result<()>
Ask the OS to end the owned child without awaiting it.
Sourcepub async fn kill(&mut self) -> Result<()>
pub async fn kill(&mut self) -> Result<()>
End the owned child and wait until it has been reaped.
Sourcepub fn try_wait(&mut self) -> Result<Option<ExitClassification>>
pub fn try_wait(&mut self) -> Result<Option<ExitClassification>>
Read an already-observed host-initiated exit without blocking.
Stderr evidence is best-effort because this synchronous path cannot await the background drain’s completion.
Sourcepub async fn wait(&mut self) -> Result<ExitClassification>
pub async fn wait(&mut self) -> Result<ExitClassification>
Wait for a host-initiated exit and classify it with drained stderr.
Sourcepub async fn close(&mut self) -> Result<ExitClassification>
pub async fn close(&mut self) -> Result<ExitClassification>
Close with the bounded ladder: end stdin, wait shutdown_timeout for
the host’s own exit, SIGTERM, wait SIGTERM_GRACE, SIGKILL, and
resolve only on the observed exit; then bound the post-exit stderr
drain by STDERR_DRAIN_TIMEOUT. Off Unix the first escalation is the
platform kill, the grace only spaces its repeat, and the reap stays
unbounded. Escalation reaches an exit and never classifies one: the
row is a function of the observed (code, signal).