Skip to main content

write_frame

Function write_frame 

Source
pub fn write_frame<W: Write, T: Serialize>(
    writer: &mut W,
    value: &T,
) -> Result<(), FrameError>
Expand description

Write value as one JSON frame.

ยงErrors

Fails if the value cannot be serialized or the stream cannot take it.