pub fn write_frame<W: Write>(writer: &mut W, frame: &BinaryFrame) -> Result<()>
Write a binary frame to a writer.