Added a new parameter `allow_too_long` to `Protocol300Message::try_from_bytes` to optionally ignore trailing data when decoding messages. This is useful when receiving messages with extra bytes that should not cause decoding to fail. - Updated function signature and documentation to include the new parameter - Modified length validation logic to skip error when `allow_too_long` is true - Updated all existing test cases to use the new parameter - Added new test cases to verify behavior with and without trailing data
The file is empty.
Description
Languages
Rust
100%