Function decode_payload
pub fn decode_payload<T>(body: &[u8]) -> Result<T, PayloadDecodeError>where
T: PayloadCodec,Expand description
Decodes the whole of body as one T: a byte left over is
PayloadDecodeError::Trailing.
pub fn decode_payload<T>(body: &[u8]) -> Result<T, PayloadDecodeError>where
T: PayloadCodec,Decodes the whole of body as one T: a byte left over is
PayloadDecodeError::Trailing.