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
Futurefor 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§
- Value
- Represents any valid MessagePack value.
Traits§
- Into
Static Future - Class of types which can be converted into a future. This trait is only differs from
futures::future::IntoFuturein that the returned future has the'staticlifetime. - Service
- The
Servicetrait defines how aMessagePack-RPCserver 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
Serviceon a stream.