rsiot/components/cmp_websocket_client_wasm/
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
/// Ошибки компонента cmp_websocket_client_wasm
#[allow(missing_docs)]
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Error when establishing connection: {0}")]
    Connect(gloo::utils::errors::JsError),

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

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

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

    #[error("Message error: {0}")]
    Message(#[from] crate::message::Error),

    #[error("Websocker error: {0}")]
    Websocket(#[from] gloo::net::websocket::WebSocketError),

    #[error(transparent)]
    CmpOutput(crate::executor::ComponentError),

    #[error(transparent)]
    BadUrl(url::ParseError),

    #[error("TaskOutput")]
    TaskOutput,

    #[error("TaskInput")]
    TaskInput,
}