summaryrefslogtreecommitdiffstats
path: root/src/platform/tun.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/tun.rs')
-rw-r--r--src/platform/tun.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platform/tun.rs b/src/platform/tun.rs
index fda17fd..801754e 100644
--- a/src/platform/tun.rs
+++ b/src/platform/tun.rs
@@ -51,11 +51,12 @@ pub trait Reader: Send + 'static {
pub trait Tun: Send + Sync + 'static {
type Writer: Writer;
type Reader: Reader;
- type Status: Status;
type Error: Error;
}
/// On some platforms the application can create the TUN device itself.
pub trait PlatformTun: Tun {
+ type Status: Status;
+
fn create(name: &str) -> Result<(Vec<Self::Reader>, Self::Writer, Self::Status), Self::Error>;
}