aboutsummaryrefslogtreecommitdiffstats
path: root/src/wireguard/types/bind.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wireguard/types/bind.rs')
-rw-r--r--src/wireguard/types/bind.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/wireguard/types/bind.rs b/src/wireguard/types/bind.rs
deleted file mode 100644
index 3d3f187..0000000
--- a/src/wireguard/types/bind.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-use super::Endpoint;
-use std::error::Error;
-
-pub trait Reader<E: Endpoint>: Send + Sync {
- type Error: Error;
-
- fn read(&self, buf: &mut [u8]) -> Result<(usize, E), Self::Error>;
-}
-
-pub trait Writer<E: Endpoint>: Send + Sync + Clone + 'static {
- type Error: Error;
-
- fn write(&self, buf: &[u8], dst: &E) -> Result<(), Self::Error>;
-}
-
-pub trait Bind: Send + Sync + 'static {
- type Error: Error;
- type Endpoint: Endpoint;
-
- /* Until Rust gets type equality constraints these have to be generic */
- type Writer: Writer<Self::Endpoint>;
- type Reader: Reader<Self::Endpoint>;
-}