Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8]) -> Res<ProtocolMessage>
Expand description

Decodes a frame from its wire bytes with the fixed codec configuration.

ยงErrors

Returns an error if the bytes are not a valid encoded frame.