Struct framecodecs::length_field::LengthFieldCodec [] [src]

pub struct LengthFieldCodec<B> { /* fields omitted */ }

Protocol codec used by LengthFieldProto.

Methods

impl<B> LengthFieldCodec<B>
[src]

Trait Implementations

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

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<B: ByteOrder> Codec for LengthFieldCodec<B>
[src]

The type of decoded frames.

The type of frames to be encoded.

Attempts to decode a frame from the provided buffer of bytes. Read more

Encodes a frame into the buffer provided. Read more

A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more