pub async fn write_frame<T, W>(writer: &mut W, value: &T) -> Result<()>where T: Serialize, W: AsyncWrite + Unpin,