Crate multi_rpc

Crate multi_rpc 

Source
Expand description

A procedural macro-based library to define a Rust service trait once and serve it over multiple RPC protocols.

Re-exports§

pub use serde;

Modules§

builder
Contains the ServerBuilder for configuring and launching servers. This module provides the ServerBuilder for configuring and launching multiple RPC servers from a single service implementation.
error
Contains the error types used by the library.
prelude
The multi-rpc prelude for convenient importing of the most common items. The multi-rpc prelude for convenient importing of the most common items.
runner
Contains the ServerRunner for managing running server tasks.

Attribute Macros§

multi_rpc_impl
A procedural macro to generate protocol-specific server implementations from a trait impl.
multi_rpc_trait
A procedural macro to define a service trait compatible with multi-rpc.
rest
An attribute to expose a trait method as a REST endpoint. Used with the rest-axum feature.