pub async fn write_frame<T>( stream: &mut TcpStream, value: &T, ) -> Result<(), Error>where T: Serialize,