pub fn format_version(bytes: &[u8]) -> Option<u8>Expand description
The format version a byte string carries (1 for HTLB\x01, 2 for HTLB\x02),
or None when it is not a bundle at all. Bundle::decode folds the two into one
struct, so this is how a reader says which one it was given.