pub enum MotorError {
PortOutOfRange,
PortNotMotor,
Unknown(i32),
}Expand description
Represents possible errors for motor operations.
Variants§
PortOutOfRange
Port is out of range (1-21).
PortNotMotor
Port cannot be configured as a motor.
Unknown(i32)
Unknown error.
Trait Implementations§
Source§impl Debug for MotorError
impl Debug for MotorError
Source§impl From<MotorError> for Error
impl From<MotorError> for Error
Source§fn from(err: MotorError) -> Self
fn from(err: MotorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MotorError
impl RefUnwindSafe for MotorError
impl Send for MotorError
impl Sync for MotorError
impl Unpin for MotorError
impl UnwindSafe for MotorError
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