[−][src]Struct tokio_proto::streaming::multiplex::StreamingMultiplex
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
impl<P, T, B> BindClient<StreamingMultiplex<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]
impl<P, T, B> BindServer<StreamingMultiplex<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,
impl<B: Debug> Debug for StreamingMultiplex<B>
[src]
Auto Trait Implementations
impl<B> RefUnwindSafe for StreamingMultiplex<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for StreamingMultiplex<B> where
B: Send,
B: Send,
impl<B> Sync for StreamingMultiplex<B> where
B: Sync,
B: Sync,
impl<B> Unpin for StreamingMultiplex<B> where
B: Unpin,
B: Unpin,
impl<B> UnwindSafe for StreamingMultiplex<B> where
B: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,