pub enum Action {
WriteMv(f32),
Complete {
peaks: Vec<f32>,
troughs: Vec<f32>,
switch_times: Vec<DateTime<Utc>>,
mv_sign_init: i8,
},
}Expand description
A side effect the caller must perform in response to a MrftEngine::step call.
Uses adjacent tagging ({"kind": "...", "data": ...}), like
crate::tags::TagOrValue: serde cannot internally tag a newtype variant holding a bare
number, which WriteMv(f32) is.
Variants§
WriteMv(f32)
Write this value to the MV tag.
Complete
The test is complete. Carries everything core-tuning-math needs to calculate PID
constants: the recorded peak/trough PV values, the timestamps of every switch after
the skip period, and which direction the very first switch went.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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 Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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