pub enum DistanceSensorError {
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 DistanceSensorError
impl Debug for DistanceSensorError
Source§impl From<DistanceSensorError> for Error
impl From<DistanceSensorError> for Error
Source§fn from(err: DistanceSensorError) -> Self
fn from(err: DistanceSensorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DistanceSensorError
impl RefUnwindSafe for DistanceSensorError
impl Send for DistanceSensorError
impl Sync for DistanceSensorError
impl Unpin for DistanceSensorError
impl UnwindSafe for DistanceSensorError
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