pub struct Machine {
pub name: String,
pub doc: u64,
pub inputs: Vec<Bound>,
pub output: Option<Place>,
pub executed: u64,
pub time_limit_ms: f64,
pub dry_run: bool,
pub stopped: Option<(String, bool)>,
pub partial: Option<(String, String)>,
pub last_params: Option<Value>,
pub wrote_files: Vec<String>,
/* private fields */
}Expand description
A macro run in progress: which step is next, and what has run.
Fields§
§name: String§doc: u64§inputs: Vec<Bound>§output: Option<Place>§executed: u64Steps executed so far (each pass through a Repeat counts).
time_limit_ms: f64§dry_run: boolDry run (the footprint check): steps that would touch files or can’t be previewed stop the run early instead of running.
stopped: Option<(String, bool)>A Stop step ended the run: its message, and whether it asked for a rollback.
partial: Option<(String, String)>A dry run stopped before this step (path, reason): what follows isn’t in the footprint.
last_params: Option<Value>The last step’s resolved parameters (for the debugger).
wrote_files: Vec<String>Files the run wrote (“step 1 (file.exportCsv)”): rolling the run back doesn’t take them back.
Implementations§
Source§impl Machine
impl Machine
pub fn new(p: &Prepared, dry_run: bool) -> Machine
pub fn is_done(&self) -> bool
Sourcepub fn restart_clock(&mut self)
pub fn restart_clock(&mut self)
Starts the time limit again (the debugger gives each action its own).
Sourcepub fn current_json(&self, wb: &Workbook) -> Json
pub fn current_json(&self, wb: &Workbook) -> Json
The current step for the debugger: its path, kind, command, parameters as they would run now, and the Repeat pass.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Machine
impl RefUnwindSafe for Machine
impl Send for Machine
impl Sync for Machine
impl Unpin for Machine
impl UnsafeUnpin for Machine
impl UnwindSafe for Machine
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