Struct tokio_proto::multiplex::ClientService
[−]
[src]
pub struct ClientService<T, P> where T: 'static, P: ClientProto<T> { /* fields omitted */ }
Client Service
for simple multiplex protocols
Trait Implementations
impl<T, P> Service for ClientService<T, P> where T: 'static, P: ClientProto<T>
[src]
type Request = P::Request
Requests handled by the service.
type Response = P::Response
Responses given by the service.
type Error = P::Error
Errors produced by the service.
type Future = ClientFuture<T, P>
The future response value.
fn call(&mut self, req: P::Request) -> Self::Future
Process the request and return the response asynchronously.
impl<T, P> Clone for ClientService<T, P> where T: 'static, P: ClientProto<T>
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more