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(&self, handle: &Handle, io: T) -> Self::BindClient
[src]
fn bind_client(&self, handle: &Handle, io: T) -> Self::BindClient
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>(&self, handle: &Handle, io: T, service: S) where
S: Service<Request = Self::ServiceRequest, Response = Self::ServiceResponse, Error = Self::ServiceError> + 'static,
[src]
fn bind_server<S>(&self, handle: &Handle, io: T, service: S) where
S: Service<Request = Self::ServiceRequest, Response = Self::ServiceResponse, Error = Self::ServiceError> + 'static,
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,