Crate rmp_rpc [] [src]

This crate provides facilities to use the MessagePack remote procedure call system (MessagePack-RPC) in Rust.

Structs

Ack

A future that resolves when a notification has been effictively sent to the server. It does not guarantees that the server receives it, just that it has been sent.

Client

A client that sends requests and notifications to a remote MessagePack-RPC server.

ClientOnlyConnector

A connector for MessagePack-RPC clients. Such a connector results in a client that does not handle requests and responses coming from the remote endpoint. It can only send requests and notifications. Incoming requests and notifications will be silently ignored.

Connection

A future that returns a MessagePack-RPC endpoint when it completes successfully.

Connector

A Connector is used to initiate a connection with a remote MessagePack-RPC endpoint. Establishing the connection consumes the Connector and gives a Connection.

Integer

Represents a MessagePack integer, whether signed or unsigned.

Response

Future response to a request. It resolved once the response is available.

Utf8String

Represents an UTF-8 MessagePack string type.

Enums

Value

Represents any valid MessagePack value.

Traits

Service

The Service trait defines how a MessagePack-RPC server handles requests and notifications.

ServiceBuilder

A Service builder. This trait must be implemented for servers.

Functions

serve

Start a MessagePack-RPC server.