Struct framecodecs::request_id_field::RequestIdFieldProto [] [src]

pub struct RequestIdFieldProto<B, C> { /* fields omitted */ }

A protocol that converts a pipelining codec into a multiplexing codec by prepending a u64 request id field to every frame of the base codec.

Methods

impl<B, C> RequestIdFieldProto<B, C> where C: Codec + Clone
[src]

Creates a new RequestIdFieldProto from a base codec.

Trait Implementations

impl<B: Debug, C: Debug> Debug for RequestIdFieldProto<B, C>
[src]

Formats the value using the given formatter.

impl<B: Default, C: Default> Default for RequestIdFieldProto<B, C>
[src]

Returns the "default value" for a type. Read more

impl<B: Clone, C: Clone> Clone for RequestIdFieldProto<B, C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<B, C, T> ClientProto<T> for RequestIdFieldProto<B, C> where C: Codec + Clone + 'static,
        B: ByteOrder + 'static,
        T: Io + 'static
[src]

Request messages.

Response messages.

Errors produced by the service.

The message transport, which usually take T as a parameter. Read more

A future for initializing a transport from an I/O object. Read more

Build a transport from the given I/O object, using self for any configuration. Read more

impl<B, C, T> ServerProto<T> for RequestIdFieldProto<B, C> where C: Codec + Clone + 'static,
        B: ByteOrder + 'static,
        T: Io + 'static
[src]

Request messages.

Response messages.

Errors produced by the service.

The message transport, which usually take T as a parameter. Read more

A future for initializing a transport from an I/O object. Read more

Build a transport from the given I/O object, using self for any configuration. Read more