pub enum JidokaViolation {
NonFiniteValue {
location: String,
value: f64,
},
EnergyDrift {
current: f64,
initial: f64,
drift: f64,
tolerance: f64,
},
ConstraintViolation {
name: String,
value: f64,
violation: f64,
tolerance: f64,
},
}Expand description
Jidoka violation types.
Each variant represents a specific anomaly that triggered the stop.
Variants§
NonFiniteValue
Non-finite value (NaN or Inf) detected.
Fields
EnergyDrift
Energy conservation violated.
Fields
ConstraintViolation
Constraint violated.
Trait Implementations§
Source§impl Clone for JidokaViolation
impl Clone for JidokaViolation
Source§fn clone(&self) -> JidokaViolation
fn clone(&self) -> JidokaViolation
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 JidokaViolation
impl Debug for JidokaViolation
Source§impl<'de> Deserialize<'de> for JidokaViolation
impl<'de> Deserialize<'de> for JidokaViolation
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 From<JidokaViolation> for SimError
impl From<JidokaViolation> for SimError
Source§fn from(v: JidokaViolation) -> Self
fn from(v: JidokaViolation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JidokaViolation
impl RefUnwindSafe for JidokaViolation
impl Send for JidokaViolation
impl Sync for JidokaViolation
impl Unpin for JidokaViolation
impl UnsafeUnpin for JidokaViolation
impl UnwindSafe for JidokaViolation
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