diff options
| author | Max Audron <audron@cocaine.farm> | 2021-01-21 14:57:41 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2021-01-21 14:57:41 +0100 |
| commit | 6a6b1197f4ebc826c6b15eb3ca7f9e3efca1be19 (patch) | |
| tree | 2e6771af51fe1aec0da0e5d44b2c9ba7318451fa /src/message/signalproxy/translation/mod.rs | |
| parent | reorganize tests and add quassel features (diff) | |
add to and from network derive
Diffstat (limited to '')
| -rw-r--r-- | src/message/signalproxy/translation/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/message/signalproxy/translation/mod.rs b/src/message/signalproxy/translation/mod.rs new file mode 100644 index 0000000..bbb8b3f --- /dev/null +++ b/src/message/signalproxy/translation/mod.rs @@ -0,0 +1,6 @@ +pub trait Network { + type Item; + + fn to_network(&self) -> Self::Item; + fn from_network(input: Self::Item) -> Self; +} |
