Skip to main content

decode_protocol_object

Function decode_protocol_object 

Source
pub fn decode_protocol_object<T: DeserializeOwned>(
    bytes: &[u8],
) -> Result<T, StoreProtocolError>
Expand description

Decode the JSON body of one protocol object. Bytes that do not parse as T are malformed for the slot they were read from.