pub fn parse_lock_slot(payload: &[u8]) -> Result<u8, PayloadError>Expand description
Parse the payload of CommandOpcode::LockSlot.
Layout: magic (4) || slot (1).
ยงErrors
PayloadError::WrongLenif the payload is not exactly 5 bytes.PayloadError::MagicMismatchif the first 4 bytes are notLOCK_SLOT_MAGIC.