Struct tokio_proto::streaming::pipeline::StreamingPipeline
[−]
[src]
pub struct StreamingPipeline<B>(_);
A marker used to flag protocols as being streaming and pipelined.
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<StreamingPipeline<B>, T> for P where
P: ClientProto<T>,
T: 'static,
B: Stream<Item = P::RequestBody, Error = P::Error> + 'static,
[src]
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]
Bind an I/O object as a service.
impl<P, T, B> BindServer<StreamingPipeline<B>, T> for P where
P: ServerProto<T>,
T: 'static,
B: Stream<Item = P::ResponseBody, Error = P::Error>,
[src]
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]
S: Service<Request = Self::ServiceRequest, Response = Self::ServiceResponse, Error = Self::ServiceError> + 'static,
Bind the service. Read more