pub enum Command {
ActivePower(Power),
ConsumptionCeiling(Power),
ProductionCeiling(Power),
ChargingCurrent(Current),
PhaseCount(u8),
OperationMode(u8),
OnOff(bool),
}Expand description
What an asset is being told to do.
Variants§
ActivePower(Power)
Track this active power, load convention: positive draws, negative feeds in or discharges.
ConsumptionCeiling(Power)
Draw no more than this. A ceiling, not a target — the asset is free to use less, which is what every § 14a and § 9 EEG limit actually says.
ProductionCeiling(Power)
Feed in no more than this magnitude (a non-negative value).
ChargingCurrent(Current)
Charging current per used conductor (the unit a wallbox speaks).
PhaseCount(u8)
Use this many outer conductors (1 or 3).
OperationMode(u8)
Enter this discrete operating mode. The u8 is the SG Ready state 1–4
or the index of an S2 OMBC operation mode.
OnOff(bool)
Switch the asset on or off.
Implementations§
Trait Implementations§
impl Copy for Command
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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