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]
impl<T, P> Service for ClientService<T, P> where
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]
fn call(&self, req: P::Request) -> Self::FutureProcess the request and return the response asynchronously.
impl<T, P> Clone for ClientService<T, P> where
T: 'static,
P: ClientProto<T>, [src]
impl<T, P> Clone for ClientService<T, P> where
T: 'static,
P: ClientProto<T>, fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T, P> Debug for ClientService<T, P> where
T: 'static + Debug,
P: ClientProto<T> + Debug, [src]
impl<T, P> Debug for ClientService<T, P> where
T: 'static + Debug,
P: ClientProto<T> + Debug, Auto Trait Implementations
impl<T, P> Send for ClientService<T, P> where
<P as ClientProto<T>>::Request: Send,
<P as ClientProto<T>>::Response: Send,
impl<T, P> Send for ClientService<T, P> where
<P as ClientProto<T>>::Request: Send,
<P as ClientProto<T>>::Response: Send, impl<T, P> !Sync for ClientService<T, P>
impl<T, P> !Sync for ClientService<T, P>