pub struct Subprocess { /* private fields */ }Implementations§
Source§impl Subprocess
impl Subprocess
pub fn spawn(cmd: SubprocessCommand) -> Result<Self, AgentError>
pub fn take_stdin(&mut self) -> Option<BufWriter<ChildStdin>>
pub fn take_stdout(&mut self) -> Option<ChildStdout>
pub async fn write(&mut self, data: &str) -> Result<(), AgentError>
pub async fn write_json( &mut self, value: &impl Serialize, ) -> Result<(), AgentError>
pub async fn close_stdin(&mut self)
pub async fn kill(&mut self) -> Result<(), AgentError>
pub async fn wait(self) -> Result<SubprocessOutput, AgentError>
Auto Trait Implementations§
impl !RefUnwindSafe for Subprocess
impl !UnwindSafe for Subprocess
impl Freeze for Subprocess
impl Send for Subprocess
impl Sync for Subprocess
impl Unpin for Subprocess
impl UnsafeUnpin for Subprocess
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