pub enum FtMotorCommand {
Forward(u8),
Backward(u8),
Stop,
Coast,
}Variants§
Forward(u8)
Drive forward with defined speed (in percent)
Backward(u8)
Stop
Stop the motor by actively braking
Coast
Stop the motor by coasting
Trait Implementations§
Source§impl Clone for FtMotorCommand
impl Clone for FtMotorCommand
Source§fn clone(&self) -> FtMotorCommand
fn clone(&self) -> FtMotorCommand
Returns a duplicate 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 moreSource§impl PartialEq for FtMotorCommand
impl PartialEq for FtMotorCommand
impl Copy for FtMotorCommand
impl StructuralPartialEq for FtMotorCommand
Auto Trait Implementations§
impl Freeze for FtMotorCommand
impl RefUnwindSafe for FtMotorCommand
impl Send for FtMotorCommand
impl Sync for FtMotorCommand
impl Unpin for FtMotorCommand
impl UnwindSafe for FtMotorCommand
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