Struct framecodecs::length_field::LengthFieldProto [] [src]

pub struct LengthFieldProto<B> {
    pub field_size: usize,
    // some fields omitted
}

A protocol such that every frame has length field prepended in specified size and byte-order.

Fields

Methods

impl<B> LengthFieldProto<B>
[src]

Trait Implementations

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

Formats the value using the given formatter.

impl<B: Clone> Clone for LengthFieldProto<B>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<B: Copy> Copy for LengthFieldProto<B>
[src]

impl<B: PartialEq> PartialEq for LengthFieldProto<B>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<B: Eq> Eq for LengthFieldProto<B>
[src]

impl<B: ByteOrder + 'static, T: Io + 'static> ServerProto<T> for LengthFieldProto<B>
[src]

Request messages.

Response messages.

Errors produced by the service.

The message transport, which works with I/O objects of type T. 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: ByteOrder + 'static, T: Io + 'static> ClientProto<T> for LengthFieldProto<B>
[src]

Request messages.

Response messages.

Errors produced by the service.

The message transport, which works with I/O objects of type T. 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