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
rs?id=2fd79888df27503fb7d928826f14a9561c11b8f2&follow=1'>make initdata fields publicMax Audron-3/+3 2021-09-28convert Init struct's methods to builder styleMax Audron-4/+6 2021-09-28switch AliasManager to use split network translation traitsMax Audron-10/+17 2021-09-28add NetworkList and NetworkMap derive macrosMax Audron-25/+101 2021-09-28add statetracker to workspaceMax Audron-1/+1 2021-09-28statetracker: cleanup codeMax Audron-29/+86 2021-09-28statetracker: first iteration of working rpc objectMax Audron-0/+709 2021-09-28rename override_type to typeMax Audron-7/+7 2021-07-31fix trailing semicolon match_variant macroMax Audron-1/+1 2021-07-31add doc for network translationMax Audron-0/+93 2021-07-25add Traits for syncable objectsMax Audron-48/+114 2021-07-21cleanup objects::TypesMax Audron-5/+35 2021-07-21add IgnoreListManagerMax Audron-0/+165 2021-07-21add cert-managerMax Audron-0/+32 2021-07-21add BufferViewManager and BufferViewConfigMax Audron-0/+95 2021-07-21migrate BufferSyncer to use Network derive and add to central TypesMax Audron-143/+22 2021-07-21rewrite network derive to work more consistentlyMax Audron-78/+90 2021-07-21fix wrong capitalization for HighlightRuleListMax Audron-2/+2 2021-07-21implement the Network trait generically for all inner Variant TypesMax Audron-1/+66 2021-07-21change IRC MessageType to be a bitflag instead of enumMax Audron-54/+94 2021-07-21fix network objectMax Audron-18/+24 2021-07-21minor docs and cleanupMax Audron-4/+8 2021-04-05WIP: impl more signalproxy objectsMax Audron-1000/+1621 2021-03-09WIP: impl signalproxy typesMax Audron-253/+376 2021-01-21add to and from network deriveMax Audron-42/+2767 2021-01-21reorganize tests and add quassel featuresMax Audron-551/+850 2021-01-04add example program: quasselproxyclientMax Audron-0/+280 2021-01-04random stuffMax Audron-2/+9 2021-01-04add more signalproxy objectsMax Audron-40/+120 2021-01-04add message parsing feature flagsMax Audron-43/+96 2021-01-04fix parsing of datetime when value is -1Max Audron-1/+9 2021-01-02update dependenciesMax Audron-267/+27 2021-01-02rework handshakemessage parsingMax Audron-141/+278 2020-10-16updateMax Audron-1553/+294 2020-10-16update paperworkMax Audron-487/+391