pub fn binary_decode<T: DeserializeOwned>(bytes: &[u8]) -> Result<T, Error>Expand description
Deserialize one value through the canonical ProtocolMachine binary codec.
This wrapper keeps binary-serialization policy centralized inside the ProtocolMachine
crate instead of scattering direct bincode calls through runtime code.
ยงErrors
Returns a bincode::Error if the bytes do not decode as the requested type
under the canonical binary codec.