pub struct Motor {
pub port: MotorPort,
pub direction: Direction,
}Expand description
Required metadata for each motor of the drivebase
Fields§
§port: MotorPortThe port of the motor
direction: DirectionThe direction the motor needs to turn to make the robot go forward.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Motor
impl RefUnwindSafe for Motor
impl Send for Motor
impl Sync for Motor
impl Unpin for Motor
impl UnwindSafe for Motor
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