From f228b6f98b141940a3302d4cd1978f56f5edb13e Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Mon, 25 Nov 2019 13:33:00 +0100 Subject: Enable up/down from configuration interface --- src/platform/tun.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/platform/tun.rs') 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::Writer, Self::Status), Self::Error>; } -- cgit v1.2.3-59-g8ed1b