Struct tokio_proto::multiplex::Multiplex
[−]
[src]
pub struct Multiplex;
A marker used to flag protocols as being multiplexed 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<Multiplex, 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<Multiplex, 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 = Self::ServiceError> + 'static,
[src]
S: Service<Request = Self::ServiceRequest, Response = Self::ServiceResponse, Error = Self::ServiceError> + 'static,
Bind the service. Read more