pub struct CmdExec { /* private fields */ }Implementations§
Source§impl CmdExec
impl CmdExec
pub fn close(&mut self)
pub fn new(cmds: &[String]) -> Result<Self, Box<dyn Error>>
pub fn new_str(cmds: &[&str]) -> Result<Self, Box<dyn Error>>
pub fn run_bytes( &mut self, inputs: &[u8], ) -> Result<(Vec<u8>, Vec<u8>, i32), Box<dyn Error>>
pub fn run( &mut self, inputs: &str, ) -> Result<(String, String, i32), Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmdExec
impl !RefUnwindSafe for CmdExec
impl !Send for CmdExec
impl !Sync for CmdExec
impl Unpin for CmdExec
impl !UnwindSafe for CmdExec
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