diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-09-11 16:28:32 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-09-11 16:28:32 +0200 |
commit | de48bec95870a057594212d7d0a2679f13034797 (patch) | |
tree | c9d9bffcfe79248f4e2ed3aee356faa344abe8c5 /src/types/endpoint.rs | |
parent | Full inbound/outbound router test (diff) | |
download | wireguard-rs-de48bec95870a057594212d7d0a2679f13034797.tar.xz wireguard-rs-de48bec95870a057594212d7d0a2679f13034797.zip |
Simplified router tests
Diffstat (limited to 'src/types/endpoint.rs')
-rw-r--r-- | src/types/endpoint.rs | 4 |
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 {} |