pub struct DeviceContext {
pub timestep: usize,
pub setpoint_kw: Option<f32>,
}Expand description
Contextual information passed to devices during power calculations. Includes the current timestep and optional setpoints for controllable devices.
§Fields
timestep- Current simulation timestepsetpoint_kw- Optional power setpoint for controllable devices (kW)
Fields§
§timestep: usize§setpoint_kw: Option<f32>Implementations§
Source§impl DeviceContext
impl DeviceContext
Auto Trait Implementations§
impl Freeze for DeviceContext
impl RefUnwindSafe for DeviceContext
impl Send for DeviceContext
impl Sync for DeviceContext
impl Unpin for DeviceContext
impl UnwindSafe for DeviceContext
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