pub struct StreamingMultiplex<B>(/* private fields */);
Expand description
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§
Source§impl<P, T, B> BindClient<StreamingMultiplex<B>, T> for P
impl<P, T, B> BindClient<StreamingMultiplex<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<StreamingMultiplex<B>, T>>::ServiceRequest, <P as BindClient<StreamingMultiplex<B>, T>>::ServiceResponse, <P as BindClient<StreamingMultiplex<B>, T>>::ServiceError>
type BindClient = ClientProxy<<P as BindClient<StreamingMultiplex<B>, T>>::ServiceRequest, <P as BindClient<StreamingMultiplex<B>, T>>::ServiceResponse, <P as BindClient<StreamingMultiplex<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<StreamingMultiplex<B>, T> for P
impl<P, T, B> BindServer<StreamingMultiplex<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 StreamingMultiplex<B>where
B: Freeze,
impl<B> RefUnwindSafe for StreamingMultiplex<B>where
B: RefUnwindSafe,
impl<B> Send for StreamingMultiplex<B>where
B: Send,
impl<B> Sync for StreamingMultiplex<B>where
B: Sync,
impl<B> Unpin for StreamingMultiplex<B>where
B: Unpin,
impl<B> UnwindSafe for StreamingMultiplex<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