Skip to main content

encode

Function encode 

Source
pub fn encode(message: &ProtocolMessage) -> Res<Vec<u8>>
Expand description

Encodes a frame to its wire bytes with the fixed codec configuration.

ยงErrors

Returns an error if the frame cannot be serialized.