pub enum MotionContext {
Static,
Slow,
Fast,
}Expand description
Robot motion context — derived from wheel encoder state.
Variants§
Static
Robot is stationary (encoders at rest).
Slow
Robot is moving slowly (below speed threshold).
Fast
Robot is moving quickly (above speed threshold).
Trait Implementations§
Source§impl Clone for MotionContext
impl Clone for MotionContext
Source§fn clone(&self) -> MotionContext
fn clone(&self) -> MotionContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MotionContext
impl Debug for MotionContext
Source§impl Hash for MotionContext
impl Hash for MotionContext
Source§impl PartialEq for MotionContext
impl PartialEq for MotionContext
impl Copy for MotionContext
impl Eq for MotionContext
impl StructuralPartialEq for MotionContext
Auto Trait Implementations§
impl Freeze for MotionContext
impl RefUnwindSafe for MotionContext
impl Send for MotionContext
impl Sync for MotionContext
impl Unpin for MotionContext
impl UnsafeUnpin for MotionContext
impl UnwindSafe for MotionContext
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