diff options
| author | Max Audron <audron@cocaine.farm> | 2025-02-26 18:23:55 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-02-26 18:26:01 +0100 |
| commit | 1bed4eb5a3727e84bac4d64995df212a971f4566 (patch) | |
| tree | ae52417374d601e870f204044f6a9ed1eed453f1 /src/deserialize.rs | |
| parent | refactor variant serialization code (diff) | |
refactor deserialize and serializevariant trait
move stuff around a bit to sepperate it out for deserializevariant
Diffstat (limited to 'src/deserialize.rs')
| -rw-r--r-- | src/deserialize.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/deserialize.rs b/src/deserialize.rs deleted file mode 100644 index e13f21f..0000000 --- a/src/deserialize.rs +++ /dev/null @@ -1,21 +0,0 @@ -use crate::error::ProtocolError; - -/// Deserialization of types and structs to the quassel byteprotocol -pub trait Deserialize { - fn parse(b: &[u8]) -> Result<(usize, Self), ProtocolError> - where - Self: std::marker::Sized; -} - -/// Deserialization of UTF-8 based Strings to the quassel byteprotocol -pub trait DeserializeUTF8 { - fn parse_utf8(b: &[u8]) -> Result<(usize, Self), ProtocolError> - where - Self: std::marker::Sized; -} - -pub trait DeserializeVariant { - fn parse_variant(b: &[u8]) -> Result<(usize, Self), ProtocolError> - where - Self: std::marker::Sized; -} |
