pub fn write<T: Serialize>( w: &mut impl Write, wire: Wire, msg: &T, ) -> Result<()>
Write one message, MessagePack structs as arrays (the plugin side: the host reads both shapes).