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.
pub fn decode_protocol_object<T: DeserializeOwned>(
bytes: &[u8],
) -> Result<T, StoreProtocolError>Decode the JSON body of one protocol object. Bytes that do not parse as T
are malformed for the slot they were read from.