aboutsummaryrefslogtreecommitdiff
path: root/src/types.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2020-01-12 18:01:18 +0100
committerMax Audron <audron@cocaine.farm>2020-01-13 19:13:05 +0100
commita7858cd77151430b3fab0bcdcacdc14375f77980 (patch)
treeb6f3d72f1c6e32b2d32f33ca3ce56a765a595d86 /src/types.rs
parentinit (diff)
initial implementation done
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/types.rs b/src/types.rs
index 9836248..1c22ce6 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -1,4 +1,17 @@
+#[allow(dead_code)]
pub mod basic;
+pub mod variant;
+pub mod handshake;
+
+pub use basic::*;
+
+pub trait Serialize {
+ fn serialize(&self) -> Vec<u8>;
+}
+
+pub trait Deserialize {
+ fn parse(&mut self, b: &[u8]) -> usize;
+}
// 78 da 6c 54 6d 6b d3 50 14 7e 44 41 d1 09