Skip to main content

write_eos

Function write_eos 

Source
pub async fn write_eos(send: &mut SendStream) -> Result<(), PyroLinkError>
Expand description

Write the EOS marker (0xFF) to the stream and finish it.

No length or payload follows the EOS byte.

§Errors

Returns PyroLinkError::Stream if the write or finish call fails.