#[non_exhaustive]pub enum LinkIssue {
Untyped {
line: usize,
bus: Option<BusId>,
machine_id: Option<String>,
error: ModelError,
},
NoGenerator {
line: usize,
model_name: String,
bus: BusId,
machine_id: String,
},
OutOfService {
line: usize,
model_name: String,
bus: BusId,
machine_id: String,
},
AmbiguousMachineId {
line: usize,
model_name: String,
bus: BusId,
machine_id: String,
candidates: Vec<String>,
},
Replaced {
line: usize,
replaced_line: usize,
bus: BusId,
machine_id: String,
model_name: String,
role: ModelRole,
},
}Expand description
Typed PSS/E DYR model views and model-aware generator linking. A DYR record that did not attach to a generator as a typed model, or replaced one that had.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Untyped
The record has no typed view; it is kept raw and not linked. bus and
machine_id are the generator it names when the model is known to
attach to one (a supported model that failed its schema, or a
generator-attached model without a typed view, whose role on that
unit stays empty); None for any other record, whose keys may name a
load, a dc line or another device.
NoGenerator
No generator of the static case has this (bus, id).
OutOfService
The generator exists but is out of service; its records are kept and not linked.
AmbiguousMachineId
No generator on the bus has this id exactly, and several match it ignoring ASCII case; the record is not linked.
Fields
Replaced
A later record of the same role for one generator replaced the
earlier one, as PSS/E does when it reads the DYR file. The record at
line is linked; the one at replaced_line is not.
Trait Implementations§
impl Eq for LinkIssue
impl StructuralPartialEq for LinkIssue
Auto Trait Implementations§
impl Freeze for LinkIssue
impl RefUnwindSafe for LinkIssue
impl Send for LinkIssue
impl Sync for LinkIssue
impl Unpin for LinkIssue
impl UnsafeUnpin for LinkIssue
impl UnwindSafe for LinkIssue
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.