pub fn decode_navigation(payload: &[u8]) -> Result<NavCommand, PickleError>Expand description
Decode an UpdateTabNavigation payload into a NavCommand.
payload is the raw bytes after the command id (i.e. the Record::payload),
which begin with the Chromium Pickle’s own 4-byte length header. Fields are
4-byte aligned; string16 lengths are UTF-16 code-unit counts, not bytes.
Malformed input yields a PickleError — never a panic — so a single bad
record degrades to a counted warning, not a crash or a wrong value.
§Errors
See PickleError.