pub trait Device {
type Error;
// Required method
fn step(&mut self, ctx: &StepContext) -> Result<(), Self::Error>;
}Expand description
An interface to the stepper motor.
Required Associated Types§
Sourcetype Error
type Error
The type of error that may be encountered when taking a step.
Use ! (or void::Void on stable) if stepping can never fail.