rsiot/components/cmp_webstorage/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use crate::components::shared_tasks;

/// Ошибки компонента cmp_webstorage
#[allow(missing_docs)]
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Component: {0}")]
    Component(#[from] crate::executor::ComponentError),

    #[error("FnInput: {0}")]
    FnInput(anyhow::Error),

    #[error("FnInput: {0}")]
    FnOutput(anyhow::Error),

    #[error("Storage: {0}")]
    Storage(#[from] gloo::storage::errors::StorageError),

    #[error("TokioTaskJoin: {0}")]
    TokioTaskJoin(#[from] tokio::task::JoinError),

    #[error("TokioSyncMpsc")]
    TokioSyncMpsc(String),

    // Ошибки в задачах ----------------------------------------------------------------------------
    #[error(transparent)]
    TaskMsgBusToMpsc(shared_tasks::msgbus_to_mpsc::Error),

    #[error("TaskInput")]
    TaskEndInput,

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