pub struct Subprocess { /* private fields */ }
Implementations§
Source§impl Subprocess
impl Subprocess
pub fn new(builder: impl Fn() -> Command + 'static) -> Result<Self>
pub fn from_builder(builder: Arc<dyn Fn() -> Command>) -> Result<Self>
pub fn is_alive(&mut self) -> bool
pub async fn write_bytes(&mut self, input: &[u8]) -> Result<()>
pub async fn read_bytes(&mut self) -> Result<Vec<u8>>
pub async fn read_bytes_until(&mut self, delimiter: u8) -> Result<Vec<u8>>
pub fn close_stdin(&mut self)
Trait Implementations§
Source§impl SubprocessHandler for Subprocess
impl SubprocessHandler for Subprocess
async fn write(&mut self, input: &str) -> Result<()>
async fn write_line(&mut self, input: &str) -> Result<()>
async fn read(&mut self) -> Result<String>
async fn read_line(&mut self) -> Result<String>
async fn write_bytes(&mut self, input: &[u8]) -> Result<()>
async fn read_bytes(&mut self) -> Result<Vec<u8>>
async fn read_bytes_until(&mut self, delimiter: u8) -> Result<Vec<u8>>
fn is_alive(&mut self) -> bool
fn close_stdin(&mut self)
fn read_until( &mut self, delimiter: u8, ) -> impl Future<Output = Result<String>> + Send
Auto Trait Implementations§
impl Freeze for Subprocess
impl !RefUnwindSafe for Subprocess
impl Send for Subprocess
impl Sync for Subprocess
impl Unpin for Subprocess
impl !UnwindSafe for Subprocess
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