pub enum MotorError {
PinError,
InvalidState(String<32>),
NotInitialized,
LimitExceeded {
position: i64,
limit: i64,
},
}Expand description
Motor operation errors.
Variants§
PinError
Pin operation failed
InvalidState(String<32>)
Motor is in wrong state for requested operation
NotInitialized
Motor not initialized
LimitExceeded
Position exceeds soft limits
Trait Implementations§
Source§impl Clone for MotorError
impl Clone for MotorError
Source§fn clone(&self) -> MotorError
fn clone(&self) -> MotorError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MotorError
impl Debug for MotorError
Source§impl Display for MotorError
impl Display for MotorError
Source§impl Error for MotorError
Available on crate feature std only.
impl Error for MotorError
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<MotorError> for Error
impl From<MotorError> for Error
Source§fn from(e: MotorError) -> Self
fn from(e: MotorError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MotorError
impl PartialEq for MotorError
impl StructuralPartialEq for MotorError
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