pub fn decode(bytes: &[u8]) -> Result<CommitBatch, CommandCodecError>Expand description
Decode command bytes produced by encode. Trailing bytes are an error:
a command is always exactly one batch.
ยงErrors
Returns CommandCodecError for truncated, oversized, trailing or
otherwise malformed input.