pub fn decode(data: &[u8]) -> Result<Option<u8>>Expand description
Decode a received SYNC frame’s data field.
Returns Ok(None) for an empty (counter-less) SYNC, or Ok(Some(count))
for a counting SYNC. Returns Error::BadLength if the frame carries more
than one byte.