[][src]Trait accel_stepper::Device

pub trait Device {
    type Error;
    fn step(&mut self, ctx: &StepContext) -> Result<(), Self::Error>;
}

An interface to the stepper motor.

Associated Types

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.

Loading content...

Required methods

fn step(&mut self, ctx: &StepContext) -> Result<(), Self::Error>

Loading content...

Implementations on Foreign Types

impl<'a, D: Device> Device for &'a mut D[src]

type Error = D::Error

Loading content...

Implementors

impl<Step, Direction, E> Device for StepAndDirection<Step, Direction> where
    Step: OutputPin<Error = E>,
    Direction: OutputPin<Error = E>, 
[src]

type Error = E

Loading content...