pub struct Pipeline;
Expand description
A marker used to flag protocols as being pipelined RPC.
This is an implementation detail; to actually implement a protocol,
implement the ClientProto
or ServerProto
traits in this module.
Trait Implementations§
Source§impl<T: 'static, P: ClientProto<T>> BindClient<Pipeline, T> for P
impl<T: 'static, P: ClientProto<T>> BindClient<Pipeline, T> for P
Source§type ServiceRequest = <P as ClientProto<T>>::Request
type ServiceRequest = <P as ClientProto<T>>::Request
The request type for the service.
Source§type ServiceResponse = <P as ClientProto<T>>::Response
type ServiceResponse = <P as ClientProto<T>>::Response
The response type for the service.
Source§type ServiceError = Error
type ServiceError = Error
The error type for the service.
Source§type BindClient = ClientService<T, P>
type BindClient = ClientService<T, P>
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<T: 'static, P: ServerProto<T>> BindServer<Pipeline, T> for P
impl<T: 'static, P: ServerProto<T>> BindServer<Pipeline, T> for P
Source§type ServiceRequest = <P as ServerProto<T>>::Request
type ServiceRequest = <P as ServerProto<T>>::Request
The request type for the service.
Source§type ServiceResponse = <P as ServerProto<T>>::Response
type ServiceResponse = <P as ServerProto<T>>::Response
The response type for the service.
Source§type ServiceError = Error
type ServiceError = 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 = Error> + 'static,
fn bind_server<S>(&self, handle: &Handle, io: T, service: S)where
S: Service<Request = Self::ServiceRequest, Response = Self::ServiceResponse, Error = Error> + 'static,
Bind the service. Read more
Auto Trait Implementations§
impl Freeze for Pipeline
impl RefUnwindSafe for Pipeline
impl Send for Pipeline
impl Sync for Pipeline
impl Unpin for Pipeline
impl UnwindSafe for Pipeline
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