"how you would do this" would usually be to have something like a serialization step, like: ```rust let p: Payload = some_func(); let mut out_buf = [0u8; 520]; // large enough for the largest buffer let used = p.serialize_into(&mut buf); uart.send(&out_buf[..used]); ```