pub enum DataError {
CouldNotGetExtrinsics(Rs2Exception, String),
CouldNotSetExtrinsics(Rs2Exception, String),
StreamDoesNotHaveVideoIntrinsics,
StreamDoesNotHaveMotionIntrinsics,
CouldNotGetIntrinsics(Rs2Exception, String),
CouldNotGetMotionIntrinsics(Rs2Exception, String),
}
Expand description
Type describing errors in getting or setting stream-related data.
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§
CouldNotGetExtrinsics(Rs2Exception, String)
Could not get extrinsics between the requested streams.
CouldNotSetExtrinsics(Rs2Exception, String)
Could not set extrinsics between the requested streams.
StreamDoesNotHaveVideoIntrinsics
This stream does not have video intrinsics.
StreamDoesNotHaveMotionIntrinsics
This stream does not have motion intrinsics.
CouldNotGetIntrinsics(Rs2Exception, String)
Could not get video intrinsics from the requested stream.
CouldNotGetMotionIntrinsics(Rs2Exception, String)
Could not get motion intrinsics from the requested stream.
Trait Implementations§
Source§impl Error for DataError
impl Error for DataError
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 DataError
impl RefUnwindSafe for DataError
impl Send for DataError
impl Sync for DataError
impl Unpin for DataError
impl UnwindSafe for DataError
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