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 (const: unstable) · 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 EncoderEvent
impl Debug for EncoderEvent
Source§impl PartialEq for EncoderEvent
impl PartialEq for EncoderEvent
Source§fn eq(&self, other: &EncoderEvent) -> bool
fn eq(&self, other: &EncoderEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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