Expand description
This crate provides facilities to use the MessagePack
remote procedure call system
(MessagePack-RPC
) in Rust.
Modules§
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.
- Utf8
String - Represents an UTF-8 MessagePack string type.
Enums§
- Decode
Error - Error while decoding a sequence of bytes into a
MessagePack-RPC
message - Value
- Represents any valid MessagePack value.
Traits§
- Service
- The
Service
trait defines how aMessagePack-RPC
server handles requests and notifications. - Service
With Client - This is a beefed-up version of
Service
, in which the various handler methods also get access to aClient
, 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.