Skip to main content

Crate turul_rpc_server

Crate turul_rpc_server 

Source
Expand description

§turul-rpc-server

Async JSON-RPC 2.0 dispatcher and handler trait for turul-rpc. The JsonRpcDispatcher<E> routes incoming requests to registered handlers and converts handler-returned domain errors to JSON-RPC error responses via the ToJsonRpcError trait.

Most consumers should depend on the turul-rpc facade instead of this crate directly.

Re-exports§

pub use dispatcher::JsonRpcDispatcher;
pub use handler::FunctionHandler;
pub use handler::JsonRpcHandler;
pub use handler::ToJsonRpcError;
pub use session::SessionContext;

Modules§

dispatcher
handler
session