pub async fn write_frame<W>(w: &mut W, frame: &Frame) -> Result<(), CliError>where W: AsyncWriteExt + Unpin,