pub struct ControllerStep {
pub plan: Plan,
pub applied_ppm: f64,
pub estimate_offset_s: f64,
pub estimate_freq_ppm: Option<f64>,
pub samples_used: usize,
pub verdict: ChangeVerdict,
}Expand description
What the controller decided, plus what the caller must do about it.
Fields§
§plan: Plan§applied_ppm: f64Total frequency the driver should command: the permanent correction plus the drain currently running.
estimate_offset_s: f64The estimate that produced the plan, for reporting.
estimate_freq_ppm: Option<f64>§samples_used: usize§verdict: ChangeVerdictWhat the maximum-change guard made of this correction. Mirrored out of the plan so a caller can act on it without matching on the command.
Auto Trait Implementations§
impl Freeze for ControllerStep
impl RefUnwindSafe for ControllerStep
impl Send for ControllerStep
impl Sync for ControllerStep
impl Unpin for ControllerStep
impl UnsafeUnpin for ControllerStep
impl UnwindSafe for ControllerStep
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