pub struct LocalProc { /* private fields */ }Implementations§
Source§impl LocalProc
impl LocalProc
pub fn new(child: Child) -> Self
pub fn id(&self) -> u32
pub fn inner(&self) -> &Child
pub async fn exit_status(&mut self) -> Option<ExitStatus>
Sourcepub fn spawn(self) -> Self
pub fn spawn(self) -> Self
Spawns io-processing task for stdout/stderr Will panic if not in tokio runtime
pub async fn write_stdin(&mut self, buf: &[u8]) -> Result<()>
pub async fn read_stdout(&mut self) -> Result<Vec<u8>>
pub async fn read_stderr(&mut self) -> Result<Vec<u8>>
pub fn kill(&mut self) -> Result<()>
pub async fn kill_and_wait(self) -> Result<Output>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LocalProc
impl !RefUnwindSafe for LocalProc
impl Send for LocalProc
impl Sync for LocalProc
impl Unpin for LocalProc
impl UnsafeUnpin for LocalProc
impl !UnwindSafe for LocalProc
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