pub struct Load {
pub bus: usize,
pub active_power: f64,
pub reactive_power: f64,
pub in_service: bool,
}Expand description
A load connected to a bus
Fields§
§bus: usizeConnected bus index
active_power: f64Active power consumption (MW, positive = consumption)
reactive_power: f64Reactive power consumption (MVAr, positive = consumption)
in_service: boolLoad status (true = in service)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Load
impl<'de> Deserialize<'de> for Load
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
Source§impl GridElement for Load
impl GridElement for Load
Source§fn element_type(&self) -> &'static str
fn element_type(&self) -> &'static str
Element type name for debugging
Source§fn apply(&self, state: &mut StateStore)
fn apply(&self, state: &mut StateStore)
Apply element’s contribution to the state
Auto Trait Implementations§
impl Freeze for Load
impl RefUnwindSafe for Load
impl Send for Load
impl Sync for Load
impl Unpin for Load
impl UnwindSafe for Load
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)