Crate rmp_rpc[][src]

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

Modules

message

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.

Endpoint

A Future for running both a client and a server at the same time.

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

IntoStaticFuture

Class of types which can be converted into a future. This trait is only differs from futures::future::IntoFuture in that the returned future has the 'static lifetime.

Service

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

ServiceWithClient

This is a beefed-up version of Service, in which the various handler methods also get access to a Client, which allows them to send requests and notifications to the same msgpack-rpc client that made the original request.

Functions

serve

Creates a future for running a Service on a stream.