pub enum DeviceConstructionError {
CouldNotCreateDeviceFromSensor(Rs2Exception, String),
CouldNotGetDeviceFromDeviceList(Rs2Exception, String),
}
Expand description
Enumeration of possible errors that can occur during device construction
Variants§
CouldNotCreateDeviceFromSensor(Rs2Exception, String)
System was unable to get the device pointer that corresponds to a given Sensor
CouldNotGetDeviceFromDeviceList(Rs2Exception, String)
Could not get device from device list
Trait Implementations§
Source§impl Debug for DeviceConstructionError
impl Debug for DeviceConstructionError
Source§impl Display for DeviceConstructionError
impl Display for DeviceConstructionError
Source§impl Error for DeviceConstructionError
impl Error for DeviceConstructionError
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 DeviceConstructionError
impl RefUnwindSafe for DeviceConstructionError
impl Send for DeviceConstructionError
impl Sync for DeviceConstructionError
impl Unpin for DeviceConstructionError
impl UnwindSafe for DeviceConstructionError
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