pub struct CommandHandle { /* private fields */ }Expand description
A command spawned in the background.
Implementations§
Source§impl CommandHandle
impl CommandHandle
pub fn number(&self) -> CommandNumber
Sourcepub fn wait(&self) -> WaitForCommand
pub fn wait(&self) -> WaitForCommand
Its result once it exits, with all it wrote.
Sourcepub async fn send_stdin(&self, data: impl Into<Vec<u8>>) -> Result<()>
pub async fn send_stdin(&self, data: impl Into<Vec<u8>>) -> Result<()>
Sends data to its stdin, which it was spawned with open.
Sourcepub async fn close_stdin(&self) -> Result<()>
pub async fn close_stdin(&self) -> Result<()>
Closes its stdin: it reads no more than it was sent.
Sourcepub async fn info(&self) -> Result<SandboxCommand>
pub async fn info(&self) -> Result<SandboxCommand>
The command as it is now.
Trait Implementations§
Source§impl Clone for CommandHandle
impl Clone for CommandHandle
Auto Trait Implementations§
impl !RefUnwindSafe for CommandHandle
impl !UnwindSafe for CommandHandle
impl Forget for CommandHandle
impl Freeze for CommandHandle
impl Send for CommandHandle
impl Sync for CommandHandle
impl Unpin for CommandHandle
impl UnsafeUnpin for CommandHandle
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