pub fn decode_exact<T: Decode>(buf: &Bytes) -> DecodeResult<T>Expand description
Decodes a complete value from buf, failing if any bytes are left over.
pub fn decode_exact<T: Decode>(buf: &Bytes) -> DecodeResult<T>Decodes a complete value from buf, failing if any bytes are left over.