Skip to main content

Crate arti_rpcserver

Crate arti_rpcserver 

Source
Expand description

§arti-rpcserver

Backend for Arti’s RPC service

§Overview

This crate provides the code to listen as an Arti RPC server, accept and authenticate incoming connections, and decode and dispatch requests from clients, and maintain state necessary for a client RPC sessions.

License: MIT OR Apache-2.0

Re-exports§

pub use connection::Connection;
pub use connection::ConnectionError;
pub use connection::auth::RpcAuthentication;
pub use mgr::RpcMgr;
pub use session::RpcSession;

Modules§

cancel 🔒
Cancellable futures.
codecs 🔒
Helper types for framing Json objects into async read/writes
connection 🔒
RPC connection support, mainloop, and protocol implementation.
err 🔒
Error types used in by arti-rpcserver].
globalid 🔒
Manager-global identifiers, for things that need to be identified outside the scope of a single RPC connection.
mgr 🔒
Top-level RpcMgr to launch sessions.
msgs 🔒
Message types used in the Arti’s RPC protocol.
objmap 🔒
An object mapper for looking up rpc::Objects by ID.
session 🔒
High-level APIs for an RPC session
stream 🔒
Objects that can become or wrap a arti_client::DataStream.

Functions§

rpc_methods
Return a list of RPC methods that will be needed to use arti-rpcserver with the given runtime.