pub fn binary_encode<T: Serialize + ?Sized>(value: &T) -> Result<Vec<u8>, Error>Expand description
Serialize 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 value cannot be serialized by the
canonical binary codec.