pub trait RotarySensor {
type Error;
// Required method
fn position(&self) -> Result<Position, Self::Error>;
}Expand description
A sensor that can measure continuous angular rotation, such as an encoder.
Required Associated Types§
Sourcetype Error
type Error
The type of error that the device returns when RotarySensor::position
fails to return a value.
Required Methods§
Implementations on Foreign Types§
Source§impl RotarySensor for AdiEncoder
impl RotarySensor for AdiEncoder
Source§impl RotarySensor for Motor
impl RotarySensor for Motor
Source§impl RotarySensor for RotationSensor
impl RotarySensor for RotationSensor
Source§impl<T: RotarySensor> RotarySensor for Rc<RefCell<T>>
Blanket implementation for all Rc<RefCell<T>> wrappers of already implemented sensors.
impl<T: RotarySensor> RotarySensor for Rc<RefCell<T>>
Blanket implementation for all Rc<RefCell<T>> wrappers of already implemented sensors.