Struct rmp_rpc::Protocol [] [src]

pub struct Protocol;

The MessagePack-RPC transport protocol. See the tokio_proto documentation

Examples

use tokio_proto::TcpServer;
fn main() {
    let addr = "127.0.0.1:54321".parse().unwrap();
    let tcp_server = TcpServer::new(Protocol, addr);
    // ...
}

Trait Implementations

impl<T: AsyncRead + AsyncWrite + 'static> ServerProto<T> for Protocol
[src]

Request messages.

Response messages.

The message transport, which works with I/O objects of type T. Read more

A future for initializing a transport from an I/O object. Read more

Build a transport from the given I/O object, using self for any configuration. Read more