pub struct BatteryDescription {
pub system: SystemDescription,
pub actuator: Id,
pub charge: Id,
pub discharge: Id,
}Expand description
A battery, described as fill-rate-based control, with the IDs needed to read an instruction back.
Fields§
§system: SystemDescriptionThe description to send.
actuator: IdThe single actuator: the inverter.
charge: IdCharging. Factor 0 is idle, factor 1 is full charge power.
discharge: IdDischarging. Factor 0 is idle, factor 1 is full discharge power.
Trait Implementations§
Source§impl Clone for BatteryDescription
impl Clone for BatteryDescription
Source§fn clone(&self) -> BatteryDescription
fn clone(&self) -> BatteryDescription
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 moreAuto Trait Implementations§
impl Freeze for BatteryDescription
impl RefUnwindSafe for BatteryDescription
impl Send for BatteryDescription
impl Sync for BatteryDescription
impl Unpin for BatteryDescription
impl UnsafeUnpin for BatteryDescription
impl UnwindSafe for BatteryDescription
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