Struct ptx_builder::executable::runner::ExecutableRunner
source · pub struct ExecutableRunner<Ex: Executable> { /* private fields */ }
Implementations§
source§impl<Ex: Executable> ExecutableRunner<Ex>
impl<Ex: Executable> ExecutableRunner<Ex>
pub fn new(executable: Ex) -> Self
pub fn with_args<I, S>(&mut self, args: I) -> &mut Self
pub fn with_env<K, V>(&mut self, key: K, val: V) -> &mut Self
pub fn with_cwd<P>(&mut self, path: P) -> &mut Self
pub fn run(&mut self) -> Result<Output>
pub fn run_live<O: FnMut(&str), E: FnMut(&str)>( &mut self, on_stdout_line: O, on_stderr_line: E, ) -> Result<Output>
Auto Trait Implementations§
impl<Ex> Freeze for ExecutableRunner<Ex>where
Ex: Freeze,
impl<Ex> !RefUnwindSafe for ExecutableRunner<Ex>
impl<Ex> Send for ExecutableRunner<Ex>where
Ex: Send,
impl<Ex> Sync for ExecutableRunner<Ex>where
Ex: Sync,
impl<Ex> Unpin for ExecutableRunner<Ex>where
Ex: Unpin,
impl<Ex> !UnwindSafe for ExecutableRunner<Ex>
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