diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-08-20 14:33:11 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-08-20 14:33:11 +0200 |
commit | 7e727d120b4c7375b7dd2f1210a883c876531c06 (patch) | |
tree | 43b30640038535c9f3d6640659707c5fd36b595b /src/types/endpoint.rs | |
parent | Implemented keypair_confirm (diff) | |
download | wireguard-rs-7e727d120b4c7375b7dd2f1210a883c876531c06.tar.xz wireguard-rs-7e727d120b4c7375b7dd2f1210a883c876531c06.zip |
Restructure and job stealing work queue
Diffstat (limited to 'src/types/endpoint.rs')
-rw-r--r-- | src/types/endpoint.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/types/endpoint.rs b/src/types/endpoint.rs new file mode 100644 index 0000000..d97905a --- /dev/null +++ b/src/types/endpoint.rs @@ -0,0 +1,6 @@ +use std::net::SocketAddr; + +/* The generic implementation (not supporting "sticky-sockets"), + * is to simply use SocketAddr directly as the endpoint. + */ +pub trait Endpoint: Into<SocketAddr> {} |