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