pub async fn write_frame<W>(w: &mut W, frame: &Value) -> Result<(), Error>where
W: AsyncWrite + Unpin,Expand description
Serialize frame and write it terminated by \n, flushing (a BufWriter-safe no-op
for unbuffered writers — makes BufWriter wrapping misuse-proof).