pub async fn write_frame<W, T>(
writer: &mut W,
message: &T,
) -> Result<(), CodecError>Expand description
Writes one length-prefixed task protocol message.
ยงErrors
Returns an error when serialization fails, the encoded frame is oversized, or the transport cannot be written.