I would not use Lines for this purpose. The codec module in tokio-util is a better bet.
Lines
codec
tokio-util