pub struct SupplyState {Show 16 fields
pub netname: Option<String>,
pub channel: Option<i64>,
pub error: Option<String>,
pub voltage: Option<f64>,
pub current: Option<f64>,
pub power: Option<f64>,
pub enabled: Option<bool>,
pub mode: Option<String>,
pub voltage_set: Option<f64>,
pub current_set: Option<f64>,
pub voltage_max: Option<f64>,
pub current_max: Option<f64>,
pub ocp_limit: Option<f64>,
pub ocp_tripped: Option<bool>,
pub ovp_limit: Option<f64>,
pub ovp_tripped: Option<bool>,
}Expand description
Structured power-supply state from the state action on
POST /supply/command. Fields are None when the individual read failed
(the box returns a full-shaped dict even on a degraded read; error
carries the reason).
Fields§
§netname: Option<String>Net name echo.
channel: Option<i64>Instrument channel driving this net.
error: Option<String>Transport-level error when the whole state gather failed.
voltage: Option<f64>Measured output voltage (V).
current: Option<f64>Measured output current (A).
power: Option<f64>Measured output power (W).
enabled: Option<bool>Whether the output is enabled.
mode: Option<String>Operating mode (e.g. "CV", "CC").
voltage_set: Option<f64>Voltage setpoint (V).
current_set: Option<f64>Current limit setpoint (A).
voltage_max: Option<f64>Hardware maximum voltage (V).
current_max: Option<f64>Hardware maximum current (A).
ocp_limit: Option<f64>Over-current protection limit (A).
ocp_tripped: Option<bool>Whether OCP has tripped.
ovp_limit: Option<f64>Over-voltage protection limit (V).
ovp_tripped: Option<bool>Whether OVP has tripped.
Trait Implementations§
Source§impl Clone for SupplyState
impl Clone for SupplyState
Source§fn clone(&self) -> SupplyState
fn clone(&self) -> SupplyState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SupplyState
impl Debug for SupplyState
Source§impl<'de> Deserialize<'de> for SupplyState
impl<'de> Deserialize<'de> for SupplyState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SupplyState
impl RefUnwindSafe for SupplyState
impl Send for SupplyState
impl Sync for SupplyState
impl Unpin for SupplyState
impl UnsafeUnpin for SupplyState
impl UnwindSafe for SupplyState
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