rsiot/drivers_i2c/pm_di16/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use crate::{components::shared_tasks, serde_utils::postcard_serde};

#[allow(missing_docs)]
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error(transparent)]
    TaskFilterIdenticalData(shared_tasks::filter_identical_data::Error),

    #[error(transparent)]
    TaskMpscToMsgBus(shared_tasks::mpsc_to_msgbus::Error),

    #[error(transparent)]
    Serde(#[from] postcard_serde::Error),

    #[error("{0}")]
    I2c(String),

    #[error("Tokio mpsc send error: {0}")]
    TokioSyncMpscSender(String),
}