async fn write_frame_async<W: AsyncWrite + Unpin + ?Sized>(
writer: &mut W,
frame: &HostFrame,
) -> Result<()>Expand description
Serialize a HostFrame as newline-delimited JSON and write it
to a writer. Used both for direct writes (connected) and for
pending-buffer drain (post-reconnect).