gnuplot_wrapper/process/
gnuplot_script_process.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::process::Child;

use crate::process::gnuplot_process::GnuplotProcess;

pub struct GnuplorScriptProcess {
    child: Child,
}

impl GnuplotProcess for GnuplorScriptProcess {
    fn new(child: Child) -> Self {
        return GnuplorScriptProcess { child: child };
    }

    fn wait(&mut self) {
        self.child.wait().unwrap();
    }
}