workflow-rpc 0.18.0

Workflow RPC (wRPC) framework based on the workflow-websocket crate offering native & in-browser (WASM32) clients and a native server (based on tokio & tungstenite). wRPC supports custom Borsh and JSON protocols with use of generics for RPC method declarations.
Documentation
//! [`enum@Error`] declarations for the [`server`](super) module

use thiserror::Error;
pub use workflow_websocket::server::Error as WebSocketError;

#[derive(Debug, Error)]
pub enum Error {
    #[error("WebSocket error: {0}")]
    WebSocketError(#[from] workflow_websocket::server::error::Error),

    #[error(transparent)]
    ChannelSendError(#[from] tokio::sync::mpsc::error::SendError<tungstenite::Message>),

    #[error(transparent)]
    Io(#[from] std::io::Error),

    #[error(transparent)]
    Task(#[from] workflow_task::TaskError),

    #[error(transparent)]
    RpcError(#[from] crate::error::Error),

    #[error("SerdeJSON error: {0}")]
    SerdeJSON(#[from] serde_json::Error),
}