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

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].

Structs§

Connection
An open connection from an RPC client.
RpcAuthentication
Information about how an RPC session has been authenticated.
RpcMgr
Shared state, configuration, and data for all RPC sessions.
RpcSession
An authenticated RPC session: a capability through which most other RPC functionality is available

Enums§

ConnectionError
A failure that results in closing a Connection.

Functions§

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