pub fn write_message<W: Write + ?Sized>(w: &mut W, msg: &[u8]) -> Result<()>Available on crate feature
std only.Expand description
Writes msg with its length prefix to w (std only), handing both to
the writer together where it supports vectored writes (RFC 7766 §8
recommends sending them in one segment). Messages over 65535 bytes fail
with std::io::ErrorKind::InvalidInput.