Skip to main content

write_raw_frame

Function write_raw_frame 

Source
pub async fn write_raw_frame<W: AsyncWrite + Unpin>(
    writer: &mut W,
    frame: &RawFrame,
) -> ProtocolResult<()>
Expand description

Writes a length-prefixed raw frame to the given writer.

Frame format: [len: u32 BE][id: u32 BE][flags: u8][body...]