pub enum SensorConstructionError {
CouldNotGetSensorFromList(Rs2Exception, String),
}
Expand description
Type describing errors that can occur when trying to construct a sensor.
Follows the standard pattern of errors where the enum variant describes what the low-level code was attempting to do while the string carried alongside describes the underlying error message from any C++ exceptions that occur.
Variants§
CouldNotGetSensorFromList(Rs2Exception, String)
Could not get the correct sensor from the sensor list.
Trait Implementations§
Source§impl Debug for SensorConstructionError
impl Debug for SensorConstructionError
Source§impl Display for SensorConstructionError
impl Display for SensorConstructionError
Source§impl Error for SensorConstructionError
impl Error for SensorConstructionError
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()
Auto Trait Implementations§
impl Freeze for SensorConstructionError
impl RefUnwindSafe for SensorConstructionError
impl Send for SensorConstructionError
impl Sync for SensorConstructionError
impl Unpin for SensorConstructionError
impl UnwindSafe for SensorConstructionError
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