Function run_with_callbacks

Source
pub fn run_with_callbacks(
    code: &str,
    stdout_callback: Option<&mut dyn FnMut(&str)>,
    stderr_callback: Option<&mut dyn FnMut(&str)>,
) -> Result<()>
Expand description

Run silently with all STDOUT and STDERR handled by the given callback functions