pub struct MrftState {
pub hysteresis: f32,
pub mv_value_current: f32,
pub mv_sign_next_step: i8,
pub counter_all_switches: u32,
pub cycles_completed: i32,
pub cycles_remaining: i32,
}Expand description
A snapshot of the engine’s observable state after a step() call — the fields a
golden-master trace comparison checks against the legacy CSV log’s per-tick columns
(Hysteresis, MvValueCurrent, MvSignNextStep, CounterAllSwitches).
Fields§
§hysteresis: f32§mv_value_current: f32§mv_sign_next_step: i8§counter_all_switches: u32§cycles_completed: i32Whole relay cycles completed so far. Mirrors GetCyclesCompleted.
cycles_remaining: i32Whole relay cycles remaining. Mirrors GetCyclesRemaining; reaches 0 on the tick of
the final switch, which is what triggers the snap-back to mv_ini instead of a full
relay step.
Trait Implementations§
impl Copy for MrftState
Source§impl<'de> Deserialize<'de> for MrftState
impl<'de> Deserialize<'de> for MrftState
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
impl StructuralPartialEq for MrftState
Auto Trait Implementations§
impl Freeze for MrftState
impl RefUnwindSafe for MrftState
impl Send for MrftState
impl Sync for MrftState
impl Unpin for MrftState
impl UnsafeUnpin for MrftState
impl UnwindSafe for MrftState
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