pub struct StreamingPipeline<B>(/* private fields */);
Expand description
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§
Source§impl<P, T, B> BindClient<StreamingPipeline<B>, T> for P
impl<P, T, B> BindClient<StreamingPipeline<B>, T> for P
Source§type ServiceRequest = Message<<P as ClientProto<T>>::Request, B>
type ServiceRequest = Message<<P as ClientProto<T>>::Request, B>
The request type for the service.
Source§type ServiceResponse = Message<<P as ClientProto<T>>::Response, Body<<P as ClientProto<T>>::ResponseBody, <P as ClientProto<T>>::Error>>
type ServiceResponse = Message<<P as ClientProto<T>>::Response, Body<<P as ClientProto<T>>::ResponseBody, <P as ClientProto<T>>::Error>>
The response type for the service.
Source§type ServiceError = <P as ClientProto<T>>::Error
type ServiceError = <P as ClientProto<T>>::Error
The error type for the service.
Source§type BindClient = ClientProxy<<P as BindClient<StreamingPipeline<B>, T>>::ServiceRequest, <P as BindClient<StreamingPipeline<B>, T>>::ServiceResponse, <P as BindClient<StreamingPipeline<B>, T>>::ServiceError>
type BindClient = ClientProxy<<P as BindClient<StreamingPipeline<B>, T>>::ServiceRequest, <P as BindClient<StreamingPipeline<B>, T>>::ServiceResponse, <P as BindClient<StreamingPipeline<B>, T>>::ServiceError>
The bound service.
Source§fn bind_client(&self, handle: &Handle, io: T) -> Self::BindClient
fn bind_client(&self, handle: &Handle, io: T) -> Self::BindClient
Bind an I/O object as a service.
Source§impl<P, T, B> BindServer<StreamingPipeline<B>, T> for P
impl<P, T, B> BindServer<StreamingPipeline<B>, T> for P
Source§type ServiceRequest = Message<<P as ServerProto<T>>::Request, Body<<P as ServerProto<T>>::RequestBody, <P as ServerProto<T>>::Error>>
type ServiceRequest = Message<<P as ServerProto<T>>::Request, Body<<P as ServerProto<T>>::RequestBody, <P as ServerProto<T>>::Error>>
The request type for the service.
Source§type ServiceResponse = Message<<P as ServerProto<T>>::Response, B>
type ServiceResponse = Message<<P as ServerProto<T>>::Response, B>
The response type for the service.
Source§type ServiceError = <P as ServerProto<T>>::Error
type ServiceError = <P as ServerProto<T>>::Error
The error type for the service.
Source§fn bind_server<S>(&self, handle: &Handle, io: T, service: S)where
S: Service<Request = Self::ServiceRequest, Response = Self::ServiceResponse, Error = Self::ServiceError> + 'static,
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
Auto Trait Implementations§
impl<B> Freeze for StreamingPipeline<B>where
B: Freeze,
impl<B> RefUnwindSafe for StreamingPipeline<B>where
B: RefUnwindSafe,
impl<B> Send for StreamingPipeline<B>where
B: Send,
impl<B> Sync for StreamingPipeline<B>where
B: Sync,
impl<B> Unpin for StreamingPipeline<B>where
B: Unpin,
impl<B> UnwindSafe for StreamingPipeline<B>where
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more