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

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.