workflow-rpc 0.19.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
1
2
3
4
5
6
7
8
9
10
11
12
//!
//! Result enum encapsulating [`super::error::Error`]
//! enum common to client and server
//!

/// Result type returning the crate's general-purpose [`Error`](super::error::Error).
pub type Result<T> = std::result::Result<T, super::error::Error>;

// use super::messages::borsh::ServerError;
/// Result type returning a [`ServerError`](super::error::ServerError), used for
/// errors that originate on and are reported by the RPC server.
pub type ServerResult<T> = std::result::Result<T, super::error::ServerError>;