pub struct CommandIo { /* private fields */ }Expand description
A cloneable handle on a running command’s input side: write or close stdin and send signals while another task is
blocked in CommandHandle::wait (which consumes the handle). Get one with CommandHandle::io.
Implementations§
Source§impl CommandIo
impl CommandIo
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 close_stdin(&self) -> Result<(), SolariError>
pub async fn close_stdin(&self) -> Result<(), SolariError>
Close the command’s stdin (the guest writes nothing, then closes it).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CommandIo
impl !UnwindSafe for CommandIo
impl Freeze for CommandIo
impl Send for CommandIo
impl Sync for CommandIo
impl Unpin for CommandIo
impl UnsafeUnpin for CommandIo
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