rsiot/components/cmp_esp_led/
error.rs1use crate::executor::ComponentError;
2
3#[allow(missing_docs)]
4#[derive(Debug, thiserror::Error)]
5pub enum Error {
6 #[error("CmpOutput: {0}")]
7 CmpOutput(ComponentError),
8
9 #[error("FnOutput: {0}")]
10 FnInput(anyhow::Error),
11
12 #[error("FnOutput: {0}")]
13 FnOutput(anyhow::Error),
14
15 #[error("TokioTaskJoin: {0}")]
16 TokioTaskJoin(#[from] tokio::task::JoinError),
17
18 #[error(transparent)]
19 Ws2812Esp32RmtDriver(#[from] ws2812_esp32_rmt_driver::Ws2812Esp32RmtDriverError),
20
21 #[error("FnProcessEnd")]
22 FnProcessEnd,
23}
24
25impl From<Error> for ComponentError {
26 fn from(value: Error) -> Self {
27 ComponentError::Execution(value.to_string())
28 }
29}