Struct tokio_proto::pipeline::Pipeline
[−]
[src]
pub struct Pipeline;
A marker used to flag protocols as being pipelined RPC.
This is an implementation detail; to actually implement a protocol,
implement the ClientProto
or ServerProto
traits in this module.
Trait Implementations
impl<T: 'static, P: ClientProto<T>> BindClient<Pipeline, T> for P
[src]
type ServiceRequest = P::Request
The request type for the service.
type ServiceResponse = P::Response
The response type for the service.
type ServiceError = Error
The error type for the service.
type BindClient = ClientService<T, P>
The bound service.
fn bind_client(&self, handle: &Handle, io: T) -> Self::BindClient
[src]
Bind an I/O object as a service.
impl<T: 'static, P: ServerProto<T>> BindServer<Pipeline, T> for P
[src]
type ServiceRequest = P::Request
The request type for the service.
type ServiceResponse = P::Response
The response type for the service.
type ServiceError = Error
The error type for the service.
fn bind_server<S>(&self, handle: &Handle, io: T, service: S) where
S: Service<Request = Self::ServiceRequest, Response = Self::ServiceResponse, Error = Error> + 'static,
[src]
S: Service<Request = Self::ServiceRequest, Response = Self::ServiceResponse, Error = Error> + 'static,
Bind the service. Read more