#[non_exhaustive]pub struct TransformerControl {
pub mode: TransformerControlMode,
pub controlled_bus: Option<BusId>,
pub tap_min: f64,
pub tap_max: f64,
pub band_min: f64,
pub band_max: f64,
pub ntp: u32,
pub mva_base: f64,
}Expand description
Automatic-control data for a regulating transformer (Branch::control).
The limits carry whatever the mode regulates:
tap_min/tap_max bound the tap ratio (or the phase angle, for
ActiveFlow), and band_min/band_max
bound the controlled quantity (the regulated voltage band, or the
scheduled MW/MVAr). ntp is the number of discrete tap positions and
controlled_bus is the regulated bus (None = the transformer’s own
terminal). mva_base is the winding MVA base the impedance is referred to.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: TransformerControlMode§controlled_bus: Option<BusId>§tap_min: f64§tap_max: f64§band_min: f64§band_max: f64§ntp: u32§mva_base: f64Implementations§
Source§impl TransformerControl
impl TransformerControl
pub fn new(mode: TransformerControlMode) -> TransformerControl
Trait Implementations§
Source§impl Clone for TransformerControl
impl Clone for TransformerControl
Source§fn clone(&self) -> TransformerControl
fn clone(&self) -> TransformerControl
Returns a duplicate of the value. Read more
1.0.0 · 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 TransformerControl
impl Debug for TransformerControl
Source§impl Default for TransformerControl
impl Default for TransformerControl
Source§fn default() -> TransformerControl
fn default() -> TransformerControl
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransformerControl
impl<'de> Deserialize<'de> for TransformerControl
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransformerControl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransformerControl, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TransformerControl
impl Serialize for TransformerControl
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TransformerControl
impl RefUnwindSafe for TransformerControl
impl Send for TransformerControl
impl Sync for TransformerControl
impl Unpin for TransformerControl
impl UnsafeUnpin for TransformerControl
impl UnwindSafe for TransformerControl
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