pub enum RoiSetError {
CouldNotSetRoi(Rs2Exception, String),
}
Expand description
Type describing errors that can occur when trying to set the region of interest of 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§
CouldNotSetRoi(Rs2Exception, String)
Could not set region of interest for sensor.
Trait Implementations§
Source§impl Debug for RoiSetError
impl Debug for RoiSetError
Source§impl Display for RoiSetError
impl Display for RoiSetError
Source§impl Error for RoiSetError
impl Error for RoiSetError
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 RoiSetError
impl RefUnwindSafe for RoiSetError
impl Send for RoiSetError
impl Sync for RoiSetError
impl Unpin for RoiSetError
impl UnwindSafe for RoiSetError
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