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§
source§impl Clone for EncoderEvent
impl Clone for EncoderEvent
source§fn clone(&self) -> EncoderEvent
fn clone(&self) -> EncoderEvent
Returns a copy 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 more