summaryrefslogtreecommitdiffstats
path: root/src/types/bind.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-10-11 12:57:24 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-10-11 12:57:24 +0200
commit3d6e8f08a7408a3f68b7917ae4ff4ea804c36d00 (patch)
tree379151be9a700d09db96e63313f623cc890808de /src/types/bind.rs
parentStart porting kernel timer semantics (diff)
downloadwireguard-rs-3d6e8f08a7408a3f68b7917ae4ff4ea804c36d00.tar.xz
wireguard-rs-3d6e8f08a7408a3f68b7917ae4ff4ea804c36d00.zip
Enable adding TUN reader to WG interface
Diffstat (limited to 'src/types/bind.rs')
-rw-r--r--src/types/bind.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/types/bind.rs b/src/types/bind.rs
index fcc38c8..3d3f187 100644
--- a/src/types/bind.rs
+++ b/src/types/bind.rs
@@ -20,9 +20,4 @@ pub trait Bind: Send + Sync + 'static {
/* Until Rust gets type equality constraints these have to be generic */
type Writer: Writer<Self::Endpoint>;
type Reader: Reader<Self::Endpoint>;
-
- /* Used to close the reader/writer when binding to a new port */
- type Closer;
-
- fn bind(port: u16) -> Result<(Self::Reader, Self::Writer, Self::Closer, u16), Self::Error>;
}