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.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/types/endpoint.rs b/src/types/endpoint.rs
index d97905a..aa4dfd7 100644
--- a/src/types/endpoint.rs
+++ b/src/types/endpoint.rs
@@ -4,3 +4,5 @@ use std::net::SocketAddr;
* is to simply use SocketAddr directly as the endpoint.
*/
pub trait Endpoint: Into<SocketAddr> {}
+
+impl<T> Endpoint for T where T: Into<SocketAddr> {}