[][src]Struct tokio_proto::streaming::multiplex::StreamingMultiplex

pub struct StreamingMultiplex<B>(_);

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]

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.

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]

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.

impl<B: Debug> Debug for StreamingMultiplex<B>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.