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.
Auto Trait Implementations§
impl Freeze for RotationSensorError
impl RefUnwindSafe for RotationSensorError
impl Send for RotationSensorError
impl Sync for RotationSensorError
impl Unpin for RotationSensorError
impl UnwindSafe for RotationSensorError
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