decode

Function decode 

Source
pub fn decode(data: &[u8]) -> Result<Frame, ProtocolError>
Expand description

Decode a frame from bytes.

ยงErrors

Returns an error if the data is incomplete, too large, or invalid.