(&self, path: &Path)
| 1153 | } |
| 1154 | |
| 1155 | fn set_console_output(&self, path: &Path) -> Result<(), String> { |
| 1156 | let console_c = path_to_cstring(path)?; |
| 1157 | check( |
| 1158 | unsafe { (self.krun.krun_set_console_output)(self.ctx_id, console_c.as_ptr()) }, |
| 1159 | "krun_set_console_output", |
| 1160 | ) |
| 1161 | } |
| 1162 | |
| 1163 | fn set_exec(&self, exec_path: &str, args: &[String], env: &[String]) -> Result<(), String> { |
| 1164 | let exec_c = CString::new(exec_path).map_err(|e| format!("invalid exec path: {e}"))?; |
no test coverage detected