Struct command_runner::CommandRunner
source · pub struct CommandRunner { /* private fields */ }Implementations§
source§impl CommandRunner
impl CommandRunner
pub fn new(cmd: &str, max_output_size: usize) -> Result<Self>
pub fn get_output(&self) -> Option<String>
pub fn get_status(&mut self) -> CommandStatus
pub fn terminate(&mut self) -> Result<CommandStatus, Error>
pub fn provide_input(&mut self, input: &str) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for CommandRunner
impl RefUnwindSafe for CommandRunner
impl Send for CommandRunner
impl Sync for CommandRunner
impl Unpin for CommandRunner
impl UnwindSafe for CommandRunner
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