Enum tb6612fng::DriveCommand
source · [−]Expand description
Defines the possible drive commands.
Variants
Forward(u8)
Drive forward with the defined speed (in percentage)
Backwards(u8)
Drive backwards with the defined speed (in percentage)
Brake
Actively brake
Stop
Coast, i.e. stop but don’t actively brake.
Trait Implementations
sourceimpl Clone for DriveCommand
impl Clone for DriveCommand
sourcefn clone(&self) -> DriveCommand
fn clone(&self) -> DriveCommand
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 DriveCommand
impl Debug for DriveCommand
sourceimpl Format for DriveCommand
impl Format for DriveCommand
sourceimpl PartialEq<DriveCommand> for DriveCommand
impl PartialEq<DriveCommand> for DriveCommand
sourcefn eq(&self, other: &DriveCommand) -> bool
fn eq(&self, other: &DriveCommand) -> bool
impl Copy for DriveCommand
impl Eq for DriveCommand
impl StructuralEq for DriveCommand
impl StructuralPartialEq for DriveCommand
Auto Trait Implementations
impl RefUnwindSafe for DriveCommand
impl Send for DriveCommand
impl Sync for DriveCommand
impl Unpin for DriveCommand
impl UnwindSafe for DriveCommand
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