Struct tokio_proto::streaming::multiplex::StreamingMultiplex [−][src]
pub struct StreamingMultiplex<B>(_);
A marker used to flag protocols as being streaming and multiplexed.
This is an implementation detail; to actually implement a protocol,
implement the ClientProto
or ServerProto
traits in this module.
Trait Implementations
impl<P, T, B> BindClient<StreamingMultiplex<B>, T> for P where
P: ClientProto<T>,
T: 'static,
B: Stream<Item = P::RequestBody, Error = P::Error> + 'static,
[src]
impl<P, T, B> BindClient<StreamingMultiplex<B>, T> for P where
P: ClientProto<T>,
T: 'static,
B: Stream<Item = P::RequestBody, Error = P::Error> + 'static,
type ServiceRequest = Message<P::Request, B>
The request type for the service.
type ServiceResponse = Message<P::Response, Body<P::ResponseBody, P::Error>>
The response type for the service.
type ServiceError = P::Error
The error type for the service.
type BindClient = ClientProxy<Self::ServiceRequest, Self::ServiceResponse, Self::ServiceError>
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<P, T, B> BindServer<StreamingMultiplex<B>, T> for P where
P: ServerProto<T>,
T: 'static,
B: Stream<Item = P::ResponseBody, Error = P::Error>,
[src]
impl<P, T, B> BindServer<StreamingMultiplex<B>, T> for P where
P: ServerProto<T>,
T: 'static,
B: Stream<Item = P::ResponseBody, Error = P::Error>,
type ServiceRequest = Message<P::Request, Body<P::RequestBody, P::Error>>
The request type for the service.
type ServiceResponse = Message<P::Response, B>
The response type for the service.
type ServiceError = P::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<B: Debug> Debug for StreamingMultiplex<B>
[src]
impl<B: Debug> Debug for StreamingMultiplex<B>
Auto Trait Implementations
impl<B> Send for StreamingMultiplex<B> where
B: Send,
impl<B> Send for StreamingMultiplex<B> where
B: Send,
impl<B> Sync for StreamingMultiplex<B> where
B: Sync,
impl<B> Sync for StreamingMultiplex<B> where
B: Sync,