rsiot/components/cmp_http_client/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/// Ошибки cmp_http_client
#[derive(Debug, thiserror::Error)]
pub enum Error<TMessage> {
    /// Ошибка конфигурации пользователя
    Configuration(String),

    /// Reqwest
    Reqwest(#[from] reqwest::Error),

    /// SendChannel
    SendChannel(#[from] tokio::sync::mpsc::error::SendError<TMessage>),

    /// TokioJoin
    TokioJoin(#[from] tokio::task::JoinError),

    /// ResponseCallback
    ResponseCallback(#[from] anyhow::Error),

    /// ComponentCore
    ComponentCore(#[from] crate::executor::ComponentError),
}