Expand description
Represents a runtime error.
Variants
System(i32)
Represents a runtime error which comes from the underlying platform
(PROS, FreeRTOS, newlib, etc.). It wraps an errno
value (i.e., system
error code).
Custom(String)
Represents a runtime error which comes from within Rust. It wraps an error string.
Trait Implementations
sourceimpl From<AdiAnalogError> for Error
impl From<AdiAnalogError> for Error
sourcefn from(err: AdiAnalogError) -> Self
fn from(err: AdiAnalogError) -> Self
Converts to this type from the input type.
sourceimpl From<AdiEncoderError> for Error
impl From<AdiEncoderError> for Error
sourcefn from(err: AdiEncoderError) -> Self
fn from(err: AdiEncoderError) -> Self
Converts to this type from the input type.
sourceimpl From<AdiGyroError> for Error
impl From<AdiGyroError> for Error
sourcefn from(err: AdiGyroError) -> Self
fn from(err: AdiGyroError) -> Self
Converts to this type from the input type.
sourceimpl From<AdiUltrasonicError> for Error
impl From<AdiUltrasonicError> for Error
sourcefn from(err: AdiUltrasonicError) -> Self
fn from(err: AdiUltrasonicError) -> Self
Converts to this type from the input type.
sourceimpl From<BatteryError> for Error
impl From<BatteryError> for Error
sourcefn from(err: BatteryError) -> Self
fn from(err: BatteryError) -> Self
Converts to this type from the input type.
sourceimpl From<ControllerError> for Error
impl From<ControllerError> for Error
sourcefn from(err: ControllerError) -> Self
fn from(err: ControllerError) -> Self
Converts to this type from the input type.
sourceimpl From<DistanceSensorError> for Error
impl From<DistanceSensorError> for Error
sourcefn from(err: DistanceSensorError) -> Self
fn from(err: DistanceSensorError) -> Self
Converts to this type from the input type.
sourceimpl From<InertialSensorError> for Error
impl From<InertialSensorError> for Error
sourcefn from(err: InertialSensorError) -> Self
fn from(err: InertialSensorError) -> Self
Converts to this type from the input type.
sourceimpl From<MotorError> for Error
impl From<MotorError> for Error
sourcefn from(err: MotorError) -> Self
fn from(err: MotorError) -> Self
Converts to this type from the input type.
sourceimpl From<RotationSensorError> for Error
impl From<RotationSensorError> for Error
sourcefn from(err: RotationSensorError) -> Self
fn from(err: RotationSensorError) -> Self
Converts to this type from the input type.
sourceimpl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
sourcefn from(err: TryFromIntError) -> Self
fn from(err: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more