pub fn write_frame( writer: &mut impl Write, payload: &[u8], ) -> Result<(), ComponentError>
Write and flush one bounded frame.