Skip to main content

write_data_frame

Function write_data_frame 

Source
pub async fn write_data_frame<W>(writer: &mut W, data: &[u8]) -> Result<()>
where W: AsyncWrite + Unpin,
Expand description

Write a session data frame (u32 length prefix, unpadded).

ยงErrors

Returns an error if data is too large or the underlying write fails.