pub struct CommandHandle {
pub cmd_id: String,
/* private fields */
}Expand description
A started command handle (commands.start).
Fields§
§cmd_id: StringImplementations§
Source§impl CommandHandle
impl CommandHandle
Sourcepub async fn stdin(&self, data: impl AsRef<[u8]>) -> Result<(), SolariError>
pub async fn stdin(&self, data: impl AsRef<[u8]>) -> Result<(), SolariError>
Write bytes to the command’s stdin.
Sourcepub async fn kill(&self, signal: Option<i64>) -> Result<(), SolariError>
pub async fn kill(&self, signal: Option<i64>) -> Result<(), SolariError>
Send a signal (default SIGTERM guest-side).
Sourcepub async fn wait(self) -> Result<CommandResult, SolariError>
pub async fn wait(self) -> Result<CommandResult, SolariError>
Wait for the command to exit, accumulating stdout/stderr.
Auto Trait Implementations§
impl !RefUnwindSafe for CommandHandle
impl !UnwindSafe 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