Skip to main content

write_frame

Function write_frame 

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

Encode and write one frame; returns the frame size written.