diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-08-31 21:00:10 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-08-31 21:00:10 +0200 |
commit | d16521f4c75ebee6fa068461693755a5c1863e9f (patch) | |
tree | 4eb1ace931180cee33d956da4a000c02377eb525 /src/types | |
parent | Reduce number of type parameters in router (diff) | |
download | wireguard-rs-d16521f4c75ebee6fa068461693755a5c1863e9f.tar.xz wireguard-rs-d16521f4c75ebee6fa068461693755a5c1863e9f.zip |
Added Bind trait to router
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/udp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/udp.rs b/src/types/udp.rs index 4bf0a9c..71d5a79 100644 --- a/src/types/udp.rs +++ b/src/types/udp.rs @@ -3,7 +3,7 @@ use std::error; /* Often times an a file descriptor in an atomic might suffice. */ -pub trait Bind: Send + Sync { +pub trait Bind: Send + Sync + 'static { type Error: error::Error; type Endpoint: Endpoint; |