aboutsummaryrefslogtreecommitdiff
path: root/src/deserialize.rs
diff options
context:
space:
mode:
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;
-}