radicle-heartwood-lfs/crates/radicle-protocol/src/wire
Lorenz Leutgeb a568e7f484 protocol: Refactor decoding
Remove `fn deserialize` and instead provide a trait `fn decode_exact`
for testing.

Refactor errors, so that we can now cleanly distinguish between
`Error::UnexpectedEnd` which means that decoding might work given
more data, and `Error::Invalid`, which means that no amount of
additional data will decode.

While at it, cleanup the variants of `Error::Invalid`, and provide `ControlType`.
2025-08-25 11:57:44 +01:00
..
frame.rs protocol: Refactor decoding 2025-08-25 11:57:44 +01:00
message.rs protocol: Refactor decoding 2025-08-25 11:57:44 +01:00
varint.rs protocol: Refactor decoding 2025-08-25 11:57:44 +01:00