pub struct FramedWriteParts<T, E> {
    pub io: T,
    pub encoder: E,
    pub buffer: BytesMut,
    /* private fields */
}
Expand description

The parts obtained from FramedWrite::into_parts.

Fields

io: T

The underlying I/O stream.

encoder: E

The frame encoder.

buffer: BytesMut

The framed data that has been buffered but not yet flushed to io.

Implementations

Changes the encoder used in FramedWriteParts.

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.