Enum embedded_controls::EncoderEvent
source · pub enum EncoderEvent {
NoTurn,
ClockwiseTurn,
CounterClockwiseTurn,
}Expand description
The event result of update Encoder.
Variants
NoTurn
Encoder doesn’t rotate.
ClockwiseTurn
Encoder rotates clockwise.
CounterClockwiseTurn
Encoder rotates counter clockwise.
Trait Implementations
sourceimpl Clone for EncoderEvent
impl Clone for EncoderEvent
sourcefn clone(&self) -> EncoderEvent
fn clone(&self) -> EncoderEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for EncoderEvent
impl Debug for EncoderEvent
sourceimpl PartialEq<EncoderEvent> for EncoderEvent
impl PartialEq<EncoderEvent> for EncoderEvent
sourcefn eq(&self, other: &EncoderEvent) -> bool
fn eq(&self, other: &EncoderEvent) -> bool
impl Copy for EncoderEvent
impl StructuralPartialEq for EncoderEvent
Auto Trait Implementations
impl RefUnwindSafe for EncoderEvent
impl Send for EncoderEvent
impl Sync for EncoderEvent
impl Unpin for EncoderEvent
impl UnwindSafe for EncoderEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more