aboutsummaryrefslogtreecommitdiffstats
path: root/src/types/endpoint.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-09-11 16:28:32 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-09-11 16:28:32 +0200
commitde48bec95870a057594212d7d0a2679f13034797 (patch)
treec9d9bffcfe79248f4e2ed3aee356faa344abe8c5 /src/types/endpoint.rs
parentFull inbound/outbound router test (diff)
downloadwireguard-rs-de48bec95870a057594212d7d0a2679f13034797.tar.xz
wireguard-rs-de48bec95870a057594212d7d0a2679f13034797.zip
Simplified router tests
Diffstat (limited to 'src/types/endpoint.rs')
-rw-r--r--src/types/endpoint.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types/endpoint.rs b/src/types/endpoint.rs
index 8033080..02682a9 100644
--- a/src/types/endpoint.rs
+++ b/src/types/endpoint.rs
@@ -1,5 +1,5 @@
use std::net::SocketAddr;
-pub trait Endpoint: Into<SocketAddr> + From<SocketAddr> + Send {}
+pub trait Endpoint: Into<SocketAddr> + From<SocketAddr> + Copy + Send {}
-impl<T> Endpoint for T where T: Into<SocketAddr> + From<SocketAddr> + Send {}
+impl<T> Endpoint for T where T: Into<SocketAddr> + From<SocketAddr> + Copy + Send {}