pub struct Multiplex;
Expand description
A marker used to flag protocols as being multiplexed 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<Multiplex, T> for P
impl<T: 'static, P: ClientProto<T>> BindClient<Multiplex, 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<Multiplex, T> for P
impl<T: 'static, P: ServerProto<T>> BindServer<Multiplex, 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 = 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 Freeze for Multiplex
impl RefUnwindSafe for Multiplex
impl Send for Multiplex
impl Sync for Multiplex
impl Unpin for Multiplex
impl UnwindSafe for Multiplex
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