Skip to main content

write_frame

Function write_frame 

Source
pub async fn write_frame<W, T>(
    writer: &mut W,
    value: &T,
) -> Result<(), CodecError>
where W: AsyncWrite + Unpin, T: Serialize,
Expand description

Write value as one frame. One over MAX_FRAME is refused before anything is written, so the writer can send something else instead.