realsense_rust/processing_blocks/
errors.rs1use crate::kind::Rs2Exception;
4use thiserror::Error;
5
6#[derive(Error, Debug, Clone, PartialEq, Eq)]
8pub enum ProcessingBlockConstructionError {
9 #[error("Could not create the processing block. Type: {0}; Reason: {1}")]
11 CouldNotCreateProcessingBlock(Rs2Exception, String),
12
13 #[error("Could not create the processing queue. Type: {0}; Reason: {1}")]
15 CouldNotCreateProcessingQueue(Rs2Exception, String),
16
17 #[error("Could not start processing the queue. Type: {0}; Reason: {1}")]
19 CouldNotStartProcessingQueue(Rs2Exception, String),
20}
21
22#[derive(Debug, Clone, Error, PartialEq, Eq)]
24#[error("Kind: {kind}; Reason: {context}")]
25pub struct ProcessFrameError {
26 pub kind: Rs2Exception,
28 pub context: String,
30}