summaryrefslogtreecommitdiffstats
path: root/src/types/endpoint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/endpoint.rs')
-rw-r--r--src/types/endpoint.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/types/endpoint.rs b/src/types/endpoint.rs
new file mode 100644
index 0000000..d97905a
--- /dev/null
+++ b/src/types/endpoint.rs
@@ -0,0 +1,6 @@
+use std::net::SocketAddr;
+
+/* The generic implementation (not supporting "sticky-sockets"),
+ * is to simply use SocketAddr directly as the endpoint.
+ */
+pub trait Endpoint: Into<SocketAddr> {}