Skip to main content

encode_message

Function encode_message 

Source
pub fn encode_message<T: Serialize>(message: &T) -> Result<Vec<u8>>
Expand description

Encode any serializable value to MessagePack bytes.

This is the generic version of encode — it works with any type that implements serde::Serialize, not just ValueEnvelope. Use this for remote execution messages (RemoteCallRequest, RemoteCallResponse, etc.).