pub struct FramedReadParts<T, D> {
    pub io: T,
    pub decoder: D,
    pub buffer: BytesMut,
    /* private fields */
}
Expand description

The parts obtained from (FramedRead::into_parts).

Fields§

§io: T

The underlying I/O stream.

§decoder: D

The frame decoder.

§buffer: BytesMut

The buffer of data that has been read from io but not yet consumed by decoder.

Implementations§

Changes the decoder in FramedReadParts.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.