cuprated/rpc/
service.rs

1//! Convenience functions for Cuprate's various [`tower::Service`] requests/responses.
2//!
3//! This module implements many methods for
4//! [`CupratedRpcHandler`](crate::rpc::CupratedRpcHandler)
5//! that are simple wrappers around the request/response API provided
6//! by the multiple [`tower::Service`]s.
7//!
8//! These exist to prevent noise like `unreachable!()`
9//! from being everywhere in the actual handler functions.
10//!
11//! Each module implements methods for a specific API, e.g.
12//! the [`blockchain`] modules contains methods for the
13//! blockchain database [`tower::Service`] API.
14
15pub(super) mod address_book;
16pub(super) mod blockchain;
17pub(super) mod blockchain_context;
18pub(super) mod blockchain_manager;
19pub(super) mod txpool;