Crate rpc_it

Source
Expand description

§RPC-IT

Low-level RPC abstraction

§Concepts

There are three concepts for RPC handling:

  • Send Notify
  • Send Request => Recv Response
  • Recv Request

This library is modeled after the msgpack-rpc, but in general, most RPC protocols follow similar patterns, we may adopt this to other protocols in the future. (JSON-RPC, etc…)

§Usage

Re-exports§

pub extern crate bytes;
pub extern crate erased_serde;
pub extern crate futures_util;
pub extern crate serde;
pub use service::ExactMatchRouter;
pub use service::RegisterError;
pub use service::RouteMessageError;
pub use service::Router;
pub use service::Service;
pub use service::ServiceBuilder;
pub use service::TypedRequest;
pub use service::TypedResponse;
pub use rpc::msg::*;
pub use rpc::*;

Modules§

__util
codec
Codec
codecs
rpc
RPC connection implementation
service
transport
transports

Macros§

kv_pairs
Create a map from a list of key-value pairs.

Structs§

IgnoredAny
An efficient way of discarding data from a deserializer.

Attribute Macros§

service
Defines new RPC service