pub enum RobotError {
Motor(MotorError),
Shutdown,
}Expand description
Errors that can occur when controlling the robot.
Variants§
Motor(MotorError)
A motor driver operation or controller validation failed.
Shutdown
The robot has already been shut down.
Trait Implementations§
Source§impl Debug for RobotError
impl Debug for RobotError
Source§impl Display for RobotError
impl Display for RobotError
Source§impl Error for RobotError
impl Error for RobotError
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 RobotError
impl From<MotorError> for RobotError
Source§fn from(source: MotorError) -> Self
fn from(source: MotorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for RobotError
impl Freeze for RobotError
impl RefUnwindSafe for RobotError
impl Send for RobotError
impl Sync for RobotError
impl Unpin for RobotError
impl UnsafeUnpin for RobotError
impl UnwindSafe for RobotError
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