pub fn decode_reply(bytes: &[u8]) -> Result<PeerReply, CodecError>Expand description
Decode a PeerReply previously produced by
encode_reply.
ยงErrors
Returns CodecError when the payload is truncated or the
magic header is wrong.
pub fn decode_reply(bytes: &[u8]) -> Result<PeerReply, CodecError>Decode a PeerReply previously produced by
encode_reply.
Returns CodecError when the payload is truncated or the
magic header is wrong.