pub fn lines<W: AsyncWrite, R: AsyncRead>(
    writer: W,
    reader: R,
    max_length: usize,
) -> (Sender<Json, LinesCodec, W>, Receiver<Json, LinesCodec, R>) {
    symmetrical(
        Json::default(),
        LinesCodec::new_with_max_length(max_length),
        writer,
        reader,
    )
}
/// Pairs the [`Json`] serialization format with the [`LinesCodec`](tokio_util::codec::LinesCodec)
/// for framing, returning a symmetrical pair of [`Sender`] and [`Receiver`].
///
/// The `max_length` parameter indicates the maximum length of any message received or sent. An
/// error is thrown during encoding and decoding if a message exceeds this length.


The `max_length` parameter indicates the maximum length of any message received or sent. An
error is thrown during encoding and decoding if a message exceeds this length.
The ` max_length ` parameter indicates the maximum length of any message received or sent . An error is thrown during encoding and decoding if a message exceeds this length .
pub fn lines<W: AsyncWrite, R: AsyncRead>(
    writer: W,
    reader: R,
    max_length: usize,
) -> (Sender<Json, LinesCodec, W>, Receiver<Json, LinesCodec, R>) {
    symmetrical(
        Json::default(),
        LinesCodec::new_with_max_length(max_length),
        writer,
        reader,
    )
}
pub fn lines < W : AsyncWrite , R : AsyncRead > ( writer : W , reader : R , max_length : usize , ) -> ( Sender < Json , LinesCodec , W > , Receiver < Json , LinesCodec , R > ) { symmetrical ( Json :: default ( ) , LinesCodec :: new_with_max_length ( max_length ) , writer , reader , ) }
Pairs the [`Json`] serialization format with the [`LinesCodec`](tokio_util::codec::LinesCodec)
for framing, returning a symmetrical pair of [`Sender`] and [`Receiver`].
Pairs the [ ` Json ` ] serialization format with the [ ` LinesCodec ` ] ( tokio_util :: codec :: LinesCodec ) for framing returning a symmetrical pair of [ ` Sender ` ] and [ ` Receiver ` ] .
writer
W
reader
R
max_length
usize