pub enum ContingencyModificationError {
MissingBus {
operation: &'static str,
bus: u32,
},
MissingBranch {
operation: &'static str,
from_bus: u32,
to_bus: u32,
circuit: String,
},
MissingGenerator {
operation: &'static str,
bus: u32,
machine_id: String,
},
MissingAreaSchedule {
operation: &'static str,
area: u32,
},
MissingHvdcLink {
operation: &'static str,
name: String,
},
MissingDcGridConverter {
operation: &'static str,
converter_id: String,
},
MissingSwitchedShunt {
operation: &'static str,
bus: u32,
},
InvalidBusType {
operation: &'static str,
bus: u32,
bus_type: u32,
},
}Expand description
Error raised when a contingency modification cannot be applied exactly.
Variants§
MissingBus
The requested bus does not exist.
MissingBranch
The requested branch does not exist.
MissingGenerator
The requested generator does not exist.
MissingAreaSchedule
The requested area schedule does not exist.
MissingHvdcLink
The requested HVDC link does not exist.
MissingDcGridConverter
The requested DC-grid converter does not exist.
MissingSwitchedShunt
The requested switched shunt does not exist at the target bus.
InvalidBusType
The requested bus type code is not recognized.
Trait Implementations§
Source§impl Clone for ContingencyModificationError
impl Clone for ContingencyModificationError
Source§fn clone(&self) -> ContingencyModificationError
fn clone(&self) -> ContingencyModificationError
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 ContingencyModificationError
impl Debug for ContingencyModificationError
Source§impl Error for ContingencyModificationError
impl Error for ContingencyModificationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ContingencyModificationError
impl PartialEq for ContingencyModificationError
Source§fn eq(&self, other: &ContingencyModificationError) -> bool
fn eq(&self, other: &ContingencyModificationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ContingencyModificationError
impl StructuralPartialEq for ContingencyModificationError
Auto Trait Implementations§
impl Freeze for ContingencyModificationError
impl RefUnwindSafe for ContingencyModificationError
impl Send for ContingencyModificationError
impl Sync for ContingencyModificationError
impl Unpin for ContingencyModificationError
impl UnsafeUnpin for ContingencyModificationError
impl UnwindSafe for ContingencyModificationError
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