1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
//! The plausibility ranges the printer port declares for what a printer reports.
//!
//! A numeric field of a snapshot this port answers is typed
//! [`Reported<f64>`](printobserver_types::Reported), carrying whether the value
//! lies outside the range declared here for it. **These are validity ranges on
//! what a printer can plausibly report, and they are not the operator's safety
//! envelope.** A reading outside one of them says the source reported something
//! implausible — a disconnected thermistor, a firmware that answers in another
//! unit. What an actor is *allowed to ask for* is
//! the supervision domain's `SafetyEnvelope`, which is server
//! configuration and is narrower by orders of magnitude; nothing reads these
//! ranges as a bound on an action, and the two are never intersected, compared
//! or substituted for one another.
//!
//! [`RANGED_FIELDS`] is the one table of which field carries which range, read
//! by the tests that drive every ranged field at its boundary.
use Range;
/// The plausibility range of `PrinterSnapshot::feedrate_factor`.
///
/// A multiplier where one means one hundred percent, spanning what the
/// firmware's own speed command accepts. A validity range on what a printer can
/// plausibly report, not a bound on what an actor may ask for.
pub const FEEDRATE_FACTOR_RANGE: Range = new;
/// The plausibility range of `PrinterSnapshot::flowrate_factor`.
///
/// A multiplier where one means one hundred percent, spanning what the
/// firmware's own flow command accepts. A validity range on what a printer can
/// plausibly report, not a bound on what an actor may ask for.
pub const FLOWRATE_FACTOR_RANGE: Range = new;
/// The plausibility range of `PrinterSnapshot::fan_percent`, in percent.
///
/// A validity range on what a printer can plausibly report, not a bound on what
/// an actor may ask for.
pub const FAN_PERCENT_RANGE: Range = new;
/// The plausibility range of `JobSnapshot::completion`, as a fraction.
///
/// A validity range on what a printer can plausibly report, not a bound on what
/// an actor may ask for.
pub const COMPLETION_RANGE: Range = new;
/// The plausibility range of `HeaterSnapshot::actual_c`, in degrees Celsius.
///
/// A validity range on what a printer can plausibly report, not a bound on what
/// an actor may ask for.
pub const HEATER_ACTUAL_C_RANGE: Range = new;
/// The plausibility range of `HeaterSnapshot::target_c`, in degrees Celsius.
///
/// A validity range on what a printer can plausibly report, not a bound on what
/// an actor may ask for.
pub const HEATER_TARGET_C_RANGE: Range = new;
/// The plausibility range of `HeaterSnapshot::offset_c`, in degrees Celsius.
///
/// A validity range on what a printer can plausibly report, not a bound on what
/// an actor may ask for.
pub const HEATER_OFFSET_C_RANGE: Range = new;
/// One field this port declares a plausibility range for.
/// Every field this port types as `Reported<f64>`, with its declared range.
///
/// These are validity ranges on what a printer can plausibly report. They are
/// not the operator's safety envelope, and nothing intersects, compares or
/// substitutes the two.
pub const RANGED_FIELDS: = ;