Enum vex_rt::rotation::RotationSensorError
source · pub enum RotationSensorError {
PortOutOfRange,
PortNotDistanceSensor,
Unknown(i32),
}
Expand description
Represents possible errors for distance sensor operations.
Variants§
PortOutOfRange
Port is out of range (1-21).
PortNotDistanceSensor
Port cannot be configured as a distance sensor.
Unknown(i32)
Unknown error.
Trait Implementations§
source§impl Debug for RotationSensorError
impl Debug for RotationSensorError
source§impl From<RotationSensorError> for Error
impl From<RotationSensorError> for Error
source§fn from(err: RotationSensorError) -> Self
fn from(err: RotationSensorError) -> Self
Converts to this type from the input type.