pub fn from_parts(parts: FramedParts<T, U>) -> Framed<T, U> {
        Framed {
            io: parts.io,
            codec: parts.codec,
            eof: false,
            is_readable: false,
            write_buf: parts.write_buf,
            write_lw: parts.write_buf_lw,
            write_hw: parts.write_buf_hw,
            read_buf: parts.read_buf,
        }
    }
/// Provides a `Stream` and `Sink` interface for reading and writing to this
/// `Io` object, using `Decode` and `Encode` to read and write the raw data.
///
/// Raw I/O objects work with byte sequences, but higher-level code usually
/// wants to batch these into meaningful chunks, called "frames". This
/// method layers framing on top of an I/O object, by using the `Codec`
/// traits to handle encoding and decoding of messages frames. Note that
/// the incoming and outgoing frame types may be distinct.
///
/// This function returns a *single* object that is both `Stream` and
/// `Sink`; grouping this into a single object is often useful for layering
/// things like gzip or TLS, which require both read and write access to the
/// underlying object.
///
/// This objects takes a stream and a readbuffer and a writebuffer. These
/// field can be obtained from an existing `Framed` with the
/// `into_parts` method.
///
/// If you want to work more directly with the streams and sink, consider
/// calling `split` on the `Framed` returned by this method, which will
/// break them into separate objects, allowing them to interact more easily.


Raw I/O objects work with byte sequences, but higher-level code usually
wants to batch these into meaningful chunks, called "frames". This
method layers framing on top of an I/O object, by using the `Codec`
traits to handle encoding and decoding of messages frames. Note that
the incoming and outgoing frame types may be distinct.

This function returns a *single* object that is both `Stream` and
`Sink`; grouping this into a single object is often useful for layering
things like gzip or TLS, which require both read and write access to the
underlying object.

This objects takes a stream and a readbuffer and a writebuffer. These
field can be obtained from an existing `Framed` with the
`into_parts` method.

If you want to work more directly with the streams and sink, consider
calling `split` on the `Framed` returned by this method, which will
break them into separate objects, allowing them to interact more easily.
Raw I / O objects work with byte sequences but higher - level code usually wants to batch these into meaningful chunks called " frames " . This method layers framing on top of an I / O object by using the ` Codec ` traits to handle encoding and decoding of messages frames . Note that the incoming and outgoing frame types may be distinct . This function returns a * single * object that is both ` Stream ` and ` Sink ` ; grouping this into a single object is often useful for layering things like gzip or TLS which require both read and write access to the underlying object . This objects takes a stream and a readbuffer and a writebuffer . These field can be obtained from an existing ` Framed ` with the ` into_parts ` method . If you want to work more directly with the streams and sink consider calling ` split ` on the ` Framed ` returned by this method which will break them into separate objects allowing them to interact more easily .
pub fn from_parts(parts: FramedParts<T, U>) -> Framed<T, U> {
        Framed {
            io: parts.io,
            codec: parts.codec,
            eof: false,
            is_readable: false,
            write_buf: parts.write_buf,
            write_lw: parts.write_buf_lw,
            write_hw: parts.write_buf_hw,
            read_buf: parts.read_buf,
        }
    }
pub fn from_parts ( parts : FramedParts < T , U > ) -> Framed < T , U > { Framed { io : parts . io , codec : parts . codec , eof : false , is_readable : false , write_buf : parts . write_buf , write_lw : parts . write_buf_lw , write_hw : parts . write_buf_hw , read_buf : parts . read_buf , } }
Provides a `Stream` and `Sink` interface for reading and writing to this
`Io` object, using `Decode` and `Encode` to read and write the raw data.
Provides a ` Stream ` and ` Sink ` interface for reading and writing to this ` Io ` object using ` Decode ` and ` Encode ` to read and write the raw data .
parts
FramedParts<T, U>