Skip to main content

encode

Function encode 

pub fn encode<T>(value: &T) -> Result<Vec<u8>, Error>
where T: Serialize,
Expand description

Wire encoding shared by host and client.

§Errors

Returns the encoder’s error when serialisation fails.