pub enum ServoState {
Init,
FrequencyLock,
PhaseLock,
}Expand description
Servo operating state.
Variants§
Init
Initial state, waiting for first sample.
FrequencyLock
Frequency-Lock Loop: fast initial convergence using large gains.
PhaseLock
Phase-Lock Loop: fine-grained tracking with smaller gains.
Trait Implementations§
Source§impl Clone for ServoState
impl Clone for ServoState
Source§fn clone(&self) -> ServoState
fn clone(&self) -> ServoState
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 moreimpl Copy for ServoState
Source§impl Debug for ServoState
impl Debug for ServoState
impl Eq for ServoState
Source§impl PartialEq for ServoState
impl PartialEq for ServoState
Source§fn eq(&self, other: &ServoState) -> bool
fn eq(&self, other: &ServoState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServoState
Auto Trait Implementations§
impl Freeze for ServoState
impl RefUnwindSafe for ServoState
impl Send for ServoState
impl Sync for ServoState
impl Unpin for ServoState
impl UnsafeUnpin for ServoState
impl UnwindSafe for ServoState
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