pub enum ServoAction {
AdjustFrequency {
ppm: f64,
},
Step {
offset_ns: i64,
},
Reject {
offset_ns: i64,
},
None,
}Expand description
Action to take on the system clock after processing a sample.
Variants§
AdjustFrequency
Adjust frequency by this many PPM.
Step
Step the clock by this offset (too large for slew).
Reject
Measurement was implausibly large; ignored without touching state.
None
No action needed (waiting for more samples).
Trait Implementations§
Source§impl Clone for ServoAction
impl Clone for ServoAction
Source§fn clone(&self) -> ServoAction
fn clone(&self) -> ServoAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServoAction
impl RefUnwindSafe for ServoAction
impl Send for ServoAction
impl Sync for ServoAction
impl Unpin for ServoAction
impl UnsafeUnpin for ServoAction
impl UnwindSafe for ServoAction
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