diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-08-28 16:27:26 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-08-28 16:27:26 +0200 |
commit | 6785aa4cb56833131b69f4d2b44301908b1a1b4c (patch) | |
tree | d9dc6ec7a3c45291f44ae3e8d707200a1b1da410 /src/types/endpoint.rs | |
parent | Renamed confirmed -> initator on keypair (diff) | |
download | wireguard-rs-6785aa4cb56833131b69f4d2b44301908b1a1b4c.tar.xz wireguard-rs-6785aa4cb56833131b69f4d2b44301908b1a1b4c.zip |
Join with worker threads on device drop
Diffstat (limited to 'src/types/endpoint.rs')
-rw-r--r-- | src/types/endpoint.rs | 2 |
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> {} |