aboutsummaryrefslogtreecommitdiff
path: root/src/deserialize.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2025-02-26 18:23:55 +0100
committerMax Audron <audron@cocaine.farm>2025-02-26 18:26:01 +0100
commit1bed4eb5a3727e84bac4d64995df212a971f4566 (patch)
treeae52417374d601e870f204044f6a9ed1eed453f1 /src/deserialize.rs
parentrefactor 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.rs21
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;
-}
url-preview-backup&id=bf06821e77078c10ab3cdd7ea3a364030c144e16&follow=1'>Release 1.0.1Max Audron-3/+3 2021-05-26fix log breaking once buffer fullMax Audron-2/+33 the log_msg function was poping the newest message and replacing it with the newest message, it should be poping the oldest messages. 2021-05-16add deployment stuffMax Audron-6/+27786 2021-05-15add container buildMax Audron-2/+35