Struct tokio_rpc::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
Client
Methods
impl Client
[src]
fn connect(addr: &SocketAddr,
handle: &Handle)
-> Box<Future<Item=Client, Error=Error>>
handle: &Handle)
-> Box<Future<Item=Client, Error=Error>>
Establish a connection to a multiplexed protobuf protocol server at the
provided addr
.
Trait Implementations
impl Service for Client
[src]
type Request = Vec<u8>
Requests handled by the service.
type Response = Vec<u8>
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = Box<Future<Item=Self::Response, Error=Self::Error>>
The future response value.
fn call(&self, req: Self::Request) -> Self::Future
Process the request and return the response asynchronously.