pub struct StdProcess { /* private fields */ }Expand description
Production Process wrapping tokio::process::Child.
Trait Implementations§
Source§impl Debug for StdProcess
impl Debug for StdProcess
Source§impl Process for StdProcess
impl Process for StdProcess
Source§type Stdout = ChildStdout
type Stdout = ChildStdout
Concrete async byte-stream type the implementation uses for
the child’s stdout. Both
StdProcess
and the mock satisfy AsyncRead + Send + Unpin.Source§type Stderr = ChildStderr
type Stderr = ChildStderr
Concrete async byte-stream type the implementation uses for
the child’s stderr.
Source§fn id(&self) -> Option<ProcessId>
fn id(&self) -> Option<ProcessId>
Numeric process id, or
None once the child has been
reaped (after Self::wait resolves).Source§fn send_signal(&mut self, signal: Signal) -> Result<(), ProcessError>
fn send_signal(&mut self, signal: Signal) -> Result<(), ProcessError>
Deliver
signal to the child. Best-effort: returns as soon as
the signal is queued by the kernel; does NOT wait for the
child to acknowledge or terminate. Read moreSource§async fn wait(&mut self) -> Result<ExitStatus, ProcessError>
async fn wait(&mut self) -> Result<ExitStatus, ProcessError>
Wait for the child to terminate and yield its exit status. Read more
Auto Trait Implementations§
impl Freeze for StdProcess
impl !RefUnwindSafe for StdProcess
impl Send for StdProcess
impl Sync for StdProcess
impl Unpin for StdProcess
impl UnsafeUnpin for StdProcess
impl !UnwindSafe for StdProcess
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