summaryrefslogtreecommitdiffstats
path: root/rust/vendor/sawp/src/protocol.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/vendor/sawp/src/protocol.rs')
-rw-r--r--rust/vendor/sawp/src/protocol.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/rust/vendor/sawp/src/protocol.rs b/rust/vendor/sawp/src/protocol.rs
new file mode 100644
index 0000000..a24d7e2
--- /dev/null
+++ b/rust/vendor/sawp/src/protocol.rs
@@ -0,0 +1,8 @@
+/// Represents the basic elements of a protocol
+pub trait Protocol<'a> {
+ /// Type of message returned when parsing
+ type Message: 'a;
+
+ /// Protocol name string
+ fn name() -> &'static str;
+}