pub fn encode_with_callback<R: GoStruct>( request: &R, callback_id: &str, ) -> Vec<u8> ⓘ
rpc<X>Request: a request struct’s fields followed by host_callback_id (omitted when empty), as Go’s embedding wrappers encode.
rpc<X>Request
host_callback_id