pub struct SafetyLimits {
pub max_voltage: Option<f64>,
pub max_current: Option<f64>,
pub allow_destructive: Option<bool>,
}Expand description
Voltage/current ceilings and the destructive-op switch enforced by the box on a saved net.
A PUT replaces the net’s whole limits record with the fields set
here: a None field is removed from the net, not preserved. Read the
current limits first (they ride along on /nets/list records as
NetRecord::safety_limits) if you mean to change one ceiling and keep
the others.
There is deliberately no max_power: one setter call establishes either
voltage or current, never both, so the box cannot evaluate a power
ceiling honestly and refuses the key rather than storing something
nothing enforces.
Fields§
§max_voltage: Option<f64>Voltage ceiling in volts. Must be positive; also caps inline ovp=
trip settings, which would otherwise lift the instrument’s own guard
above the net ceiling.
max_current: Option<f64>Current ceiling in amps. Must be positive; also caps inline ocp=.
allow_destructive: Option<bool>Some(false) makes the box refuse erase and flash on this net.
Absent means allowed (the box treats a missing key as unrestricted).
Implementations§
Trait Implementations§
Source§impl Clone for SafetyLimits
impl Clone for SafetyLimits
Source§fn clone(&self) -> SafetyLimits
fn clone(&self) -> SafetyLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more