Skip to main content

decode_exact

Function decode_exact 

Source
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.