pub enum PreflightToolResult {
Passed {
need: PreflightNeed,
remaining_g: f64,
spool: PreflightSpool,
},
Unchecked,
Insufficient {
marks: Option<Vec<UnverifiedMark>>,
need: PreflightNeed,
remaining_g: f64,
spool: PreflightSpool,
},
UnverifiedSpool {
marks: Vec<UnverifiedMark>,
need: Option<PreflightNeed>,
remaining_g: f64,
spool: PreflightSpool,
},
NoAnalysis {
remaining_g: f64,
spool: PreflightSpool,
},
Overridden {
objection: PreflightObjection,
},
Warned {
objection: PreflightObjection,
},
}Expand description
What a filament check found for one tool, tagged by its verdict, each verdict carrying exactly the evidence it rests on.
Variants§
Passed
The spool holds what the print needs and its buffer, and its figure is not in doubt.
Unchecked
No tracked spool is loaded on the tool, so nothing was checked.
Insufficient
The spool holds less than the print needs and its buffer.
Fields
marks: Option<Vec<UnverifiedMark>>The spool’s marks at the check, oldest first, so a spool both short and unverified says both.
need: PreflightNeedWhat the print needs from it.
spool: PreflightSpoolThe spool.
UnverifiedSpool
The spool’s figure is in doubt.
Fields
marks: Vec<UnverifiedMark>Every reason the spool’s figure is in doubt, oldest first; never empty.
need: Option<PreflightNeed>What the print needs from it, when the file’s analysis says.
spool: PreflightSpoolThe spool.
NoAnalysis
OctoPrint’s analysis of the file had not appeared, so what the spool
must hold is unknown.
Overridden
The start went ahead despite this objection, because an operator said so.
Fields
objection: PreflightObjectionWhat the check objected to.
Warned
The check is set to warn, and let the start go ahead despite this objection.
Fields
objection: PreflightObjectionWhat the check objected to.