[−][src]Struct tokio_proto::multiplex::Multiplex
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
impl<T: 'static, P: ClientProto<T>> BindClient<Multiplex, T> for P
[src]
type ServiceRequest = P::Request
The request type for the service.
type ServiceResponse = P::Response
The response type for the service.
type ServiceError = Error
The error type for the service.
type BindClient = ClientService<T, P>
The bound service.
fn bind_client(&self, handle: &Handle, io: T) -> Self::BindClient
[src]
impl<T: 'static, P: ServerProto<T>> BindServer<Multiplex, T> for P
[src]
type ServiceRequest = P::Request
The request type for the service.
type ServiceResponse = P::Response
The response type for the service.
type ServiceError = 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 Debug for Multiplex
[src]
Auto Trait Implementations
impl RefUnwindSafe for Multiplex
impl Send for Multiplex
impl Sync for Multiplex
impl Unpin for Multiplex
impl UnwindSafe for Multiplex
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>,