Skip to main content

write_frame

Function write_frame 

Source
pub async fn write_frame<W: AsyncWrite + Unpin>(
    w: &mut W,
    frame: &Value,
) -> Result<()>
Expand description

Serialize frame and write it terminated by \n, flushing (a BufWriter-safe no-op for unbuffered writers — makes BufWriter wrapping misuse-proof).