summaryrefslogtreecommitdiffstats
path: root/src/types/udp.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-09-14 12:43:09 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-09-14 12:43:09 +0200
commitb31becda71feace70f96043cd39bbe022a054225 (patch)
treea632ea4bee35d70cf21dd2137120402203cf47f3 /src/types/udp.rs
parentTest for confirmation of key using staged packet (diff)
downloadwireguard-rs-b31becda71feace70f96043cd39bbe022a054225.tar.xz
wireguard-rs-b31becda71feace70f96043cd39bbe022a054225.zip
Begin work on the pure Wireguard implemenation
Start joining the handshake device and router device in the top-level Wireguard implemenation.
Diffstat (limited to 'src/types/udp.rs')
-rw-r--r--src/types/udp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types/udp.rs b/src/types/udp.rs
index 71d5a79..943bf94 100644
--- a/src/types/udp.rs
+++ b/src/types/udp.rs
@@ -3,8 +3,8 @@ use std::error;
/* Often times an a file descriptor in an atomic might suffice.
*/
-pub trait Bind: Send + Sync + 'static {
- type Error: error::Error;
+pub trait Bind: Send + Sync + Clone + 'static {
+ type Error: error::Error + Send;
type Endpoint: Endpoint;
fn new() -> Self;