pub struct CompileRunOutput {
pub compile_output: Output,
pub run_output: Option<Output>,
}
Expand description
Outputs of both compilation and running.
Fields§
§compile_output: Output
Output of the compilation phase.
run_output: Option<Output>
Output of the run phase. It is optional because if the compilation failed, we won’t try to run at all.
Implementations§
Source§impl CompileRunOutput
impl CompileRunOutput
Sourcepub fn successful_run_output(&self) -> CProbeResult<String>
pub fn successful_run_output(&self) -> CProbeResult<String>
Returns a probe program’s standard output as a UTF-8 string.
This function does not panic. If the compilation or run failed, this is reported in the error. If the program’s output is not valid UTF-8, lossy conversion is performed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompileRunOutput
impl RefUnwindSafe for CompileRunOutput
impl Send for CompileRunOutput
impl Sync for CompileRunOutput
impl Unpin for CompileRunOutput
impl UnwindSafe for CompileRunOutput
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