Function mini_rxtx::serialize_msg
source · [−]pub fn serialize_msg<'a, T: Serialize>(
msg: &T,
buf: &'a mut [u8]
) -> Result<SerializedMsg<'a>, Error>
Expand description
Encode messages into a byte buffer.
This is not part of MiniTxRx itself because we do not want to require access to resources when encoding bytes.