pub enum LidarError {
SerialPort(Error),
Io(Error),
Timeout,
NotFound,
InvalidResponse,
CommandFailed,
BufferOverflow,
}Expand description
Error types for LIDAR operations.
Variants§
SerialPort(Error)
Serial port error.
Io(Error)
I/O error.
Timeout
Command timeout.
NotFound
Not found device.
InvalidResponse
Invalid response from device.
CommandFailed
Command execution failed.
BufferOverflow
Buffer overflow.
Trait Implementations§
Source§impl Debug for LidarError
impl Debug for LidarError
Source§impl Display for LidarError
impl Display for LidarError
Source§impl Error for LidarError
Available on crate feature std only.
impl Error for LidarError
Available on crate feature
std only.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<Error> for LidarError
Available on crate feature std only.
impl From<Error> for LidarError
Available on crate feature
std only.Auto Trait Implementations§
impl !RefUnwindSafe for LidarError
impl !UnwindSafe for LidarError
impl Freeze for LidarError
impl Send for LidarError
impl Sync for LidarError
impl Unpin for LidarError
impl UnsafeUnpin for LidarError
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