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]
impl<T: 'static, P: ClientProto<T>> BindClient<Multiplex, T> for P
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<E>(&self, executor: &E, io: T) -> Self::BindClient where
E: Executor<Box<Future<Item = (), Error = ()>>>,
[src]
fn bind_client<E>(&self, executor: &E, io: T) -> Self::BindClient where
E: Executor<Box<Future<Item = (), Error = ()>>>,
Bind an I/O object as a service.
impl<T: 'static, P: ServerProto<T>> BindServer<Multiplex, T> for P
[src]
impl<T: 'static, P: ServerProto<T>> BindServer<Multiplex, T> for P
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, E>(&self, executor: &E, io: T, service: S) where
S: Service<Request = Self::ServiceRequest, Response = Self::ServiceResponse, Error = Self::ServiceError> + 'static,
E: Executor<Box<Future<Item = (), Error = ()>>>,
[src]
fn bind_server<S, E>(&self, executor: &E, io: T, service: S) where
S: Service<Request = Self::ServiceRequest, Response = Self::ServiceResponse, Error = Self::ServiceError> + 'static,
E: Executor<Box<Future<Item = (), Error = ()>>>,
Bind the service. Read more
impl Debug for Multiplex
[src]
impl Debug for Multiplex