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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EncoderEvent
impl Debug for EncoderEvent
Source§impl PartialEq for EncoderEvent
impl PartialEq for EncoderEvent
impl Copy for EncoderEvent
impl StructuralPartialEq for EncoderEvent
Auto Trait Implementations§
impl Freeze for EncoderEvent
impl RefUnwindSafe for EncoderEvent
impl Send for EncoderEvent
impl Sync for EncoderEvent
impl Unpin for EncoderEvent
impl UnwindSafe for EncoderEvent
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